Module: TableHelp::Helper

Defined in:
lib/table_help/helper.rb

Instance Method Summary collapse

Instance Method Details

#table_for(collection_or_resource, options = {}) ⇒ Object Also known as: attributes_table_for



3
4
5
# File 'lib/table_help/helper.rb', line 3

def table_for(collection_or_resource, options = {})
  resolve_builder_from(collection_or_resource, options).tap { |this| yield this }.to_html
end