Don't need h in there now that XSS protection is on by default
This commit is contained in:
parent
0c27d0886e
commit
28bd0873ff
@ -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 -%>
|
||||
|
Loading…
Reference in New Issue
Block a user