Module: ActiveAdmin::ViewHelpers::TableHelper

Included in:
ActiveAdmin::ViewHelpers
Defined in:
lib/active_admin/view_helpers/table_helper.rb

Instance Method Summary collapse

Instance Method Details

#table_for(collection, options = {}, &block) ⇒ Object

Helper to render a table for a collection



6
7
8
# File 'lib/active_admin/view_helpers/table_helper.rb', line 6

def table_for(collection, options = {}, &block)
  ActiveAdmin::TableBuilder.new(&block).to_html(self, collection, options)
end