I am using Rails 3.2.8 with ActiveAdmin 0.4.4 .
If the :destroy action is enabled in an ActiveAdmin resource controller, by default, the Delete <resource> button appears at the top-right of the resource show page.
That delete button is a little too prominent and too easily clickable for my liking. I admit that there is a confirmation dialog when the button is clicked, but I would still like to re-locate the button and put it elsewhere. I would probably also make it just a small link and not style it as a button.
How would I go about doing this?
The delete action item is added in the add_default_action_items at path/to/activeadmin_gem/lib/active_admin/resource/action_items.rb in
So what you could do is just wipe the delete button all together or add a specific css class to it. Not by changing the gem source, but by adding the following to the bottom of /config/initializers/activeadmin.rb and so dynamically opening up the private module method
Now, you can style your way around, or you could just comment the whole destroy link away. The index screen still has delete links for resources. Dont forget to restart the server.
Good luck reading source!