Froze rails gems
[depot.git] / vendor / rails / railties / lib / rails_generator / generators / components / scaffold / templates / view_index.html.erb
1 <h1>Listing <%= plural_name %></h1>
2
3 <table>
4 <tr>
5 <% for attribute in attributes -%>
6 <th><%= attribute.column.human_name %></th>
7 <% end -%>
8 </tr>
9
10 <%% for <%= singular_name %> in @<%= plural_name %> %>
11 <tr>
12 <% for attribute in attributes -%>
13 <td><%%=h <%= singular_name %>.<%= attribute.name %> %></td>
14 <% end -%>
15 <td><%%= link_to 'Show', <%= singular_name %> %></td>
16 <td><%%= link_to 'Edit', edit_<%= singular_name %>_path(<%= singular_name %>) %></td>
17 <td><%%= link_to 'Destroy', <%= singular_name %>, :confirm => 'Are you sure?', :method => :delete %></td>
18 </tr>
19 <%% end %>
20 </table>
21
22 <br />
23
24 <%%= link_to 'New <%= singular_name %>', new_<%= singular_name %>_path %>