Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 563
Sergio Tapia Avatar asked Dec 03 '22 22:12

Sergio Tapia


1 Answers

They call them action items:

action_item :import_demo, only: :show do
  link_to 'Import Demo', '#'
end
like image 79
Josh Brody Avatar answered Dec 30 '22 02:12

Josh Brody