module TableFor::ViewAdditions::ClassMethods
Public Instance Methods
table_for(records, options={}, &block)
click to toggle source
# 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