4

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

My question is, when I let it do it's default thing, it displays all the fields plus 3 other links that allow me to 'edit' / 'delete' that item. However if I modify the ActiveAdmin.register [resource] bit, the 'edit'/'delete' lines 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 the edit/delete stuff?

1 Answer 1

9

Try some code like this:

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.