<%= object.class.human_attribute_name(relationship) %>

<%= render :partial => 'admin/shared/add_to_association', :locals => { :relationship_class => relationship_class, :object => object, :relationship => relationship } %> <%- if collection.present? -%> <% columns.each do |column| %> <%- end -%> <%- collection.each do |record| -%> "> <%- columns.each do |column| -%> <%- if record.send(column).is_a?(ActiveRecord::Base) -%> <%- else -%> <%- end -%> <%- end -%> <%- end -%>
ID<%= relationship_class.human_attribute_name(column) %> 
<%= record.id %><%= display_name_for(record.send(column)) %><%= record.send(column) %> <%- if resource_administrated?(record.class) -%> <%= render :partial => 'admin/shared/association_collection_table_actions', :locals => { :record => record, :object => object, :relationship => relationship } %> <%- else -%>   <%- end -%>
<%- else -%> <%= render :partial => 'admin/shared/blank_slate', :locals => { :blank_text => "There are no #{object.class.human_attribute_name(relationship)}" } %> <%- end -%>