Module: TableHelper
- Defined in:
- lib/table_builder/table_builder.rb
Defined Under Namespace
Classes: TableBuilder
Instance Method Summary collapse
Instance Method Details
#table_for(objects = [], options = {}) ⇒ Object
3 4 5 6 7 |
# File 'lib/table_builder/table_builder.rb', line 3 def table_for objects = [], = {} = .delete(:html) builder = .delete(:builder) || TableBuilder concat content_tag(:table, ) { yield builder.new(objects, self, ) } end |