Module: Trestle::TableHelper

Defined in:
app/helpers/trestle/table_helper.rb

Instance Method Summary collapse

Instance Method Details

#table(collection, options = {}, &block) ⇒ Object



3
4
5
6
# File 'app/helpers/trestle/table_helper.rb', line 3

def table(collection, options={}, &block)
  table = Table::Builder.build(options, &block)
  render "trestle/table/table", table: table, collection: collection
end