%table %tr <%- model_attributes.each do |attribute| -%> %th <%= attribute.human_name %> <%- end -%> - @<%= instances_name %>.each do |<%= instance_name %>| %tr <%- model_attributes.each do |attribute| -%> %td= <%= instance_name %>.<%= attribute.name %> <%- end -%> <%- if action?(:show) -%> %td= link_to('Show', <%= item_path %>) <%- end -%> <%- if action?(:edit) -%> %td= link_to('Edit', <%= item_path(:action => :edit) %>) <%- end -%> <%- if action?(:destroy) -%> %td= link_to('Destroy', <%= item_path %>, :confirm => 'Are you sure?', :method => :delete) <%- end -%> <%- if actions?(:new) -%> %p= link_to("New <%= titleized_name %>", <%= item_path(:action => :new) %>) <%- end -%>