Sha256: 2f317d106bfa2a8a10e726b9ad5a93f7bd038c1fa4864dde74e919f83b2c71d1
Contents?: true
Size: 802 Bytes
Versions: 33
Compression:
Stored size: 802 Bytes
Contents
<%= static_table_for @products do |t| t.column :title t.column :title do |a| foo_me(a.title) end t.column :title do |a| bar_me(a.title) end t.column :price t.column :price do |b| "%08.4f" % b.price end t.column :active t.column :updated_at t.column :updated_at do |r| r.updated_at.strftime('%d.%m.%Y') end t.association :vendor, :name t.association :tags, :title t.association :tags, :title do |record| record.tags.map(&:title).map do |v| bar_me(v) end end t.association :tags, :title do |record| record.tags.map(&:title).map do |v| foo_me(v) end end t.association :tags, :count t.action header: "ACTION!" do |t| t.title.upcase end t.buttons do |b,r| b.button :eye, product_path(r) end end or "empty" %>
Version data entries
33 entries across 33 versions & 1 rubygems