Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add custom items at header menu in ActiveAdmin

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

like image 928
Gustavo Chaín Avatar asked Mar 08 '12 15:03

Gustavo Chaín


1 Answers

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
like image 108
kristinalim Avatar answered Sep 21 '22 22:09

kristinalim