Sha256: 82807994a09c85170f3b34ffd3f0c339a4361449738d449b5bd7d3acceee39a8

Contents?: true

Size: 670 Bytes

Versions: 3

Compression:

Stored size: 670 Bytes

Contents

= table_go_for(articles, Article) do |t|
  - t.render_rows_only true
  - 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')

Version data entries

3 entries across 3 versions & 1 rubygems

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