module TableHelper

Public Instance Methods

table_for(records, options={}, &block) click to toggle source
# File lib/tablematic/helper.rb, line 4
def table_for(records, options={}, &block)
  attr = options[:attributes] || records.first.attribute_names
  concat TableBuilder.new(records, attr, options).build(self, &block)
end