O
O
Ord EO2019-05-06 14:07:47
Ruby on Rails
Ord EO, 2019-05-06 14:07:47

How to make a name clickable in Active Admin?

I am newbie.
Using Active Admin, how can I make sure that when clicking on a specific name, the same page opens as when clicking on the 'View' item?5cd015650ee4e948053560.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Alekseiev, 2019-05-06
@OrdeO

Where the index action is described, you make a custom column

index do
  selectable_column
  column :id
  column :email
  column :name do |user|
    link_to user.name, admin_admin_user_path(user.id)
  end
end

perhaps the names of the columns and the route admin_admin_user_path are not the same, substitute your own.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question