Module: TableFor::ViewAdditions::ClassMethods

Defined in:
lib/table_for/view_additions.rb

Instance Method Summary collapse

Instance Method Details

#table_for(records, options = {}, &block) ⇒ Object



4
5
6
# File 'lib/table_for/view_additions.rb', line 4

def table_for(records, options={}, &block)
  TableFor::Base.new(self, options.merge(:variable => "table", :records => records)).render_template("table_for/table_for", &block)
end