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