%h1 Listing <%= plural_name %>

%table
  %tr
<% for attribute in attributes -%>
    %th <%= attribute.column.human_name %>
<% end -%>
  - @<%= plural_name %>.each do |<%= singular_name %>|
    %tr
    <% for attribute in attributes -%>
  %td= h <%= singular_name %>.<%= attribute.name %>
    <% end -%>    
      %td= link_to 'Show', object_url(<%= singular_name %>)
      %td= link_to 'Edit', edit_object_url(<%= singular_name %>)
      %td= link_to 'Destroy', object_url(<%= singular_name %>), :confirm => 'Are you sure?', :method => :delete

%br/

=link_to 'New <%= singular_name %>', new_object_url