active admin render edit page

此生再无相见时 提交于 2019-11-29 10:38:40

Have you tried this?

render active_admin_template('edit.html.arb'), :layout => false
Shalvika

I had a similar issue, but I was overriding the create controller and wanted all the active admin godness for rendering error messaegs. So here is what I did

controller do
 layout 'active_admin',  :only => [:create,:my_collection_method,:my_member_method]

 def create
 //my code here
 end
end

So basically, i added the 'layout "active_admin" ' line in my controller part and added ALL my custom methods. So the 'my_collection_method' is a custom collection action in the active amdin resource, something like

:my_collection_action, :method=>:get do
//my code here
end

You could try something similar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!