Module: TableHelp::Helper
- Defined in:
- lib/table_help/helper.rb
Instance Method Summary collapse
- #table_for(collection_or_resource, options = {}) ⇒ Object (also: #attributes_table_for)
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, = {}) resolve_builder_from(collection_or_resource, ).tap { |this| yield this }.to_html end |