新手问题 rails_admin 我想禁止编辑,新增 或者 导出数据,我该怎么配置?

tanjianna · September 13, 2012 · Last by tanjianna replied at September 13, 2012 · 2325 hits

现在在玩 rails_admin 来做后台,但是想禁止某些功能,例如 导出数据,新增或者历史等功能视图,我该怎么配置

rails_admin.rb 这个文件配置就行!
RailsAdmin.config do |config| config.actions do # root actions dashboard # mandatory # collection actions index # mandatory new #export #history_index bulk_delete # member actions show edit delete #history_show show_in_app end end

You need to Sign in before reply, if you don't have an account, please Sign up first.