Sha256: 649af688cdc5a475514959eb0cac2a65e2e34fdd06912d9ed171265608dfb312

Contents?: true

Size: 660 Bytes

Versions: 4

Compression:

Stored size: 660 Bytes

Contents

%p Suppe
= table_go_for(articles, Article) do |t|
  - t.column :ident
  - t.column :custom_single_cell do |value, record, column|
    = "Ident: %s - Title: %s" % [record.ident, record.title]
  - t.column :custom_multiline_cell do |value, record, column|
    = "Ident: %s -" % record.ident
    = " Title: %s" % record.title
  - t.column :custom_single_cell_with_backwards_compatibility do |value, record, column|
    - "Ident: %s" % record.ident
  - t.column :field_with_html_markup, :label => 'field with_html_markup' do |value, record, column|
    = link_to('click me', 'http://nowhere.com')
    %br
    = link_to('and here', 'http://otherwhere.com')
%p Pampe

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
table_go-0.2.6 spec/fixtures/simple_table.html.haml
table_go-0.2.5 spec/fixtures/simple_table.html.haml
table_go-0.2.4 spec/fixtures/simple_table.html.haml
table_go-0.2.3 spec/fixtures/simple_table.html.haml