Add custom items at header menu in ActiveAdmin

gchain picture gchain · Mar 8, 2012 · Viewed 15.1k times · Source

I want to add a link like link_to ("Edit yout profile", edit_user (current_user)) at header in ActiveAdmin. Is that possible ?!

Answer

kristinalim picture kristinalim · Oct 2, 2013

Recent versions of ActiveAdmin allow you to do this in your active_admin.rb initializer:

config.namespace :admin do |admin|
  admin.build_menu do |menu|
    menu.add :label => 'Custom Menu' do |submenu|
      submenu.add :label => 'Custom Link', :url => custom_path
    end
  end
end