-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can you disable edit or delete in a show view? #134
Comments
Nevermind. I see how you can open up the controller in the config like this:
Thanks. |
Do you want to only disable the buttons? Or the entire actions? To disable the actions use: actions :index, :show Or actions :except => [:edit, :update] Currently there is no supported mechanism to turn on and off individual action items that you didn't create. On 2011-05-31, at 7:41 AM, ryanwoodreply@reply.github.com wrote:
|
@ryanwood No need to open the controller class, you can call #actions directly from the registration block |
And what if you need only to remove the buttons because you are using a belongs_to association of Inherited Resources? |
I see the default action_items in the resource_controller class, but can't figure out how to disable them via the active_admin model config. Is that possible?
-Ryan
The text was updated successfully, but these errors were encountered: