Sha256: 2d0d20e0f8557208eabb35b7aba81056b4b747fe001f77af65838f0c4715ccd9
Contents?: true
Size: 553 Bytes
Versions: 18
Compression:
Stored size: 553 Bytes
Contents
- @attributes ||= collection.first.attribute_names - ['id', 'created_at', 'updated_at'] %table.table.table-striped{:class => "#{collection.first.class.to_s.downcase.pluralize} collection"} %thead %tr - @attributes.each do |field| %th= t_attr field, collection.first.class %th.action-links %tbody - collection.each do |r| %tr - @attributes.each do |field| %td= r.send(field) if r.respond_to?(field) %td.action-links = list_link_for(:edit, r) = list_link_for(:delete, r)
Version data entries
18 entries across 18 versions & 1 rubygems