Class: ActiveAdmin::PageDSL
Overview
This is the class where all the register_page blocks are instance eval’d
Instance Method Summary collapse
-
#content(options = {}, &block) ⇒ Object
Page content.
Methods inherited from DSL
Instance Method Details
#content(options = {}, &block) ⇒ Object
Page content.
The block should define the view using Arbre.
Example:
ActiveAdmin.register "My Page" do
content do
para "Sweet!"
end
end
17 18 19 |
# File 'lib/active_admin/page_dsl.rb', line 17 def content( = {}, &block) config.set_page_presenter :index, ActiveAdmin::PagePresenter.new(, &block) end |