答案 0 :(得分:5)
@montells在您的回购中复制https://github.com/sferik/rails_admin/blob/master/app/views/rails_admin/main/_submit_buttons.html.haml此页面,在" views / rails_admin / main / _submit_buttons.html.haml"
现在,在此文件中,您可以将条件放在要删除的页面按钮中 例如
- if params[:model_name]
- if params[:model_name] != "model_name_in_which_you_want_hide_button"
"Paste above url view"