class ActiveAdmin::PageDSL
This is the class where all the register_page blocks are instance eval’d
def content(options = {}, &block)
end
end
para "Sweet!"
content do
ActiveAdmin.register "My Page" do
Example:
The block should define the view using Arbre.
Page content.
def content(options = {}, &block) config.set_page_presenter :index, ActiveAdmin::PagePresenter.new(options, &block) end
def page_action(name, options = {}, &block)
def page_action(name, options = {}, &block) config.page_actions << ControllerAction.new(name, options) controller do define_method(name, &block || Proc.new{}) end end