<% @resource_class.attribute_names.each do |attr| %> <% end %> <% @resources.each do |resource| %> <% resource.attributes.values.each do |attr| %> <% end %>
<%= @resource_class.human_attribute_name attr %> 
<%= attr %> <% end %> <%= link_to "Show", [ :admin, resource ] %> <%= link_to "Edit", [ :edit, :admin, resource ] %> <%= link_to "Destroy", [ :admin, resource ], method: :delete %>