2012-01-18 54 views

回答

2

我所知道的唯一方法是创建一些空模型:

应用程序/模型/ fake.rb:

class Fake 

end 

然后创建生成的应用程序/模型/ fake.rb:

ActiveAdmin.register Fake do 
    config.comments = false 
    config.clear_sidebar_sections! 
    config.clear_action_items! 

    collection_action :index do 
     # here you can set you template 
     render 'you_template', :layout => 'active_admin' 
    end 
end 
0

ActiveAdmin的主分支中的最后更改弃用了仪表板并创建了自定义页面的概念。见this