class ActionView::Base
Public Instance Methods
static_table_for(records, opts={}, &block)
click to toggle source
# File lib/tabulatr/rails/action_view.rb, line 31 def static_table_for(records, opts={}, &block) Tabulatr::Renderer.build_static_table(records, self, opts, &block) end
table_for(klass, columns: [], filters: [], tabulatr_data_class: nil, **opts, &block)
click to toggle source
render the table in a view
# File lib/tabulatr/rails/action_view.rb, line 26 def table_for(klass, columns: [], filters: [], tabulatr_data_class: nil, **opts, &block) @_tabulatr_table_index += 1 Tabulatr::Renderer.build_table(klass, self, opts, columns, filters, tabulatr_data_class, &block) end