gregbell/active_admin — Issue #595: ActiveAdmin Layout was lost after overring Controller action
Author: tcpipmen
Created: 2011-10-09 14:33:37+00:00
State: open

I have a Resource controller and when I try to override 'new' action in ActiveAdmin then form shows up, but the ActiveAdmin layout is gone. Is there anyway to keep ActiveAdmin layout while overriding controller actions?

ActiveAdmin.register Resource do

controller do
# This code is evaluated within the controller class

def new
@resource = Resource.new
@resource.build_synchronization
@intervals = ['A','B','C']
end
end

end