Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

root/trunk/railties/lib/rails_generator/generators/components/scaffold/templates/view_show.html.erb

Revision 6869, 285 bytes (checked in by bitsweat, 1 year ago)

Normalize whitespace. Closes #8385 [Time Pope]

Line 
1 <% for attribute in attributes -%>
2 <p>
3   <b><%= attribute.column.human_name %>:</b>
4   <%%=h @<%= singular_name %>.<%= attribute.name %> %>
5 </p>
6
7 <% end -%>
8
9 <%%= link_to 'Edit', edit_<%= singular_name %>_path(@<%= singular_name %>) %> |
10 <%%= link_to 'Back', <%= plural_name %>_path %>
Note: See TracBrowser for help on using the browser.