Sergio Tapia
Sergio Tapia

Reputation: 9825

How to add a custom button on the ActiveAdmin show view?

Here's where I'd like to add a new button:

enter image description here

I'd like to add a new button on the upper right, pointing to a custom URL based on some properties in the user the page is referring to.

I couldn't find the right options here.

Upvotes: 5

Views: 11536

Answers (1)

Josh Brody
Josh Brody

Reputation: 5363

They call them action items:

action_item :import_demo, only: :show do
  link_to 'Import Demo', '#'
end

Upvotes: 19

Related Questions