Module: ActiveAdmin::ViewHelpers::TableHelper
- Included in:
- ActiveAdmin::ViewHelpers
- Defined in:
- lib/active_admin/view_helpers/table_helper.rb
Instance Method Summary collapse
-
#table_for(collection, options = {}, &block) ⇒ Object
Helper to render a table for a collection.
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, = {}, &block) ActiveAdmin::TableBuilder.new(&block).to_html(self, collection, ) end |