module Iquest::SimpleTable::TableHelper
Public Instance Methods
simple_table_for(*args) { |builder| ... }
click to toggle source
# File lib/iquest/simple_table/table_helper.rb, line 4 def simple_table_for(*args) collection = args.first opts = args.extract_options! opts[:html] ||= {} opts[:html][:class] ||= ['filter-table'] opts[:html][:class] << ' ' if opts[:html][:class].is_a? String opts[:responsive] ||= true builder = SimpleTable::TableBuilder.new self, collection, opts yield builder builder.to_s end