I want to add a link like link_to (\"Edit yout profile\", edit_user (current_user)) at header in ActiveAdmin. Is that possible ?!
If you're using a later version of ActiveAdmin that has the capability for custom pages, you can do the following:
ActiveAdmin.register_page "Store Admin" do
controller do
define_method(:index) do
redirect_to "/store/admin"
end
end
end
This overrides the index
action of the PageController which normally just renders the page, but you can instead have it redirect to wherever you want to go, such as edit_user_path