some
[appoyo.git] / vendor / plugins / facebooker / generators / facebook_scaffold / templates / view_index.html.erb
blobe89757e3e9d54d60d696d5d551c8d891f8e71dfe
1 <h1>Listing <%= plural_name %></h1>
3 <table>
4   <tr>
5 <% for attribute in attributes -%>
6     <th><%= attribute.column.human_name %></th>
7 <% end -%>
8   </tr>
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>
22 <br />
24 <%%= link_to 'New <%= singular_name %>', new_<%= singular_name %>_path %>