2e603d5b4a3665c25e987433ceaf6f64c3ce6604
[feedcatcher.git] /
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 <%% @<%= plural_name %>.each do |<%= singular_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 %>