Reputation: 2584
i'm using rails_admin gem. In admin page I have a model called Staff. Is possible only allow edit action for this model? I want to disable new,destroy ect ect.
Upvotes: 1
Views: 457
Reputation: 9049
You can use CanCan to configure the authorization in Rails Admin. This wiki tells you how to setup possible verbs for each model.
You could also hack the views to set visibility:hidden
etc, but I would prefer the CanCan way.
Upvotes: 1