Editing / Removing ActiveAdmin Rails

Using ActiveAdmin for rails application (very impressed so far).

My question is: when I let it do this by default, it displays all the fields plus 3 other links that allow me to edit / delete this element. However, if I modify the ActiveAdmin.register [resource] bit, the lines 'edit' / 'delete' disappear in the output.

ActiveAdmin.register Highscore do index do column :id column :user column :score column :level column :created_at column :updated_at end end 

How do I link to an edit / delete file?

+4
source share
1 answer

Try using the following code:

 ActiveAdmin.register Highscore do index do column :id column :user column :score column :level column :created_at column :updated_at default_actions end end 

You can also add custom actions by following this wiki page.

+9
source

All Articles