Don't need h in there now that XSS protection is on by default

This commit is contained in:
Michael Koziarski 2009-10-08 14:34:15 +13:00
parent 0c27d0886e
commit 28bd0873ff
2 changed files with 2 additions and 2 deletions

@ -13,7 +13,7 @@
<%% @<%= plural_name %>.each do |<%= singular_name %>| %>
<tr>
<% for attribute in attributes -%>
<td><%%=h <%= singular_name %>.<%= attribute.name %> %></td>
<td><%%= <%= singular_name %>.<%= attribute.name %> %></td>
<% end -%>
<td><%%= link_to 'Show', <%= singular_name %> %></td>
<td><%%= link_to 'Edit', edit_<%= singular_name %>_path(<%= singular_name %>) %></td>

@ -1,7 +1,7 @@
<% for attribute in attributes -%>
<p>
<b><%= attribute.human_name %>:</b>
<%%=h @<%= singular_name %>.<%= attribute.name %> %>
<%%= @<%= singular_name %>.<%= attribute.name %> %>
</p>
<% end -%>