%h1 Listing <%= plural_table_name %>
%table
%tr
<% for attribute in attributes -%>
%th <%= attribute.human_name %>
<% end -%>
%th %th %th - @<%= plural_table_name %>.each do |<%= singular_table_name %>| %tr
<% for attribute in attributes -%>
%td= <%= singular_table_name %>.<%= attribute.name %>
<% end -%>
%td= link_to 'Show', [<%= singular_table_name %>.<%= nested_parent_name %>, <%= singular_table_name %>] %td= link_to 'Edit', edit_<%= nested_parent_name %>_<%= singular_table_name %>_path(<%= singular_table_name %>.<%= nested_parent_name %>, <%= singular_table_name %>) %td= link_to 'Destroy', [<%= singular_table_name %>.<%= nested_parent_name %>, <%= singular_table_name %>], data: { confirm: 'Are you sure?' }, method: :delete
%br