%h1 <%= plural_table_name.capitalize %> %table.scaffold.common-table.zebra-stripped.sortable %thead %tr <% for attribute in attributes -%> %th <%= attribute.human_name %> <% end -%> %th.button_column %th.button_column %th.button_column %tbody - @<%= plural_table_name %>.each do |<%= singular_table_name %>| %tr <% for attribute in attributes -%> %td= <%= singular_table_name %>.<%= attribute.name %> <% end -%> %td.button_column= link_to 'Show', <%= singular_table_name %>, :class => 'btn info float_left' %td.button_column= link_to 'Edit', edit_<%= singular_table_name %>_path(<%= singular_table_name %>), :class => 'btn primary float_left' %td.button_column= link_to 'Destroy', <%= singular_table_name %>, :confirm => 'Are you sure?', :method => :delete, :class => 'btn danger float_left' %br .actions = link_to 'New <%= human_name %>', new_<%= singular_table_name %>_path, :class => 'btn primary '