ActiveAdmin.register MyTable的做 控制器做
def edit
#---This code doesn't work
render :template=>"myEditTemplate.html",:layout =>"active_admin"
end
def new
#--code in this section works fine
render :template=>"myNewTemplate.html",:layout =>"active_admin"
end
末
我想看着URL我编辑模板代码: 的http:// */admin/mytable/1 /编辑 但activeadmin没有看到我的代码/它显示代码与自己的模板不是我的 为什么?
可能相关:https://stackoverflow.com/questions/6725233/active-admin-customize-only-new-form –