lib/tabletastic/helper.rb
def table_for(collection, *args, &block)
      block = Tabletastic.default_table_block unless block_given?
      klass = default_class_for(collection)
      options = args.extract_options!
      initialize_html_options(options, klass)
      result = capture { block.call(TableBuilder.new(collection, klass, self)) }
      content_tag(:table, result, options[:html])
    end
def table_for(collection, *args, &block)
      block = Tabletastic.default_table_block unless block_given?
      klass = default_class_for(collection)
      options = args.extract_options!
      initialize_html_options(options, klass)
      result = capture { block.call(TableBuilder.new(collection, klass, self)) }
      content_tag(:table, result, options[:html])
    end
returns and outputs a table for the given active record collection