Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the best way to add a global navigation item to Active Admin in Rails 3

I am trying to add a global navigation menu item to my Active Admin installation (next to the 'Dashboard' nav button). Active Admin says this is possible on their site but they do not have any documentation about how to achieve it. Does anyone know how to do this?

EDIT: Sorry, I should have been more clear. I want to add a link to the global navigation that consists of an arbitrary text/link pair. IE, if I wanted to add a link to http://google.com with text "Google" in the global navigation of active admin, how would I accomplish that?

like image 487
Jason Buehler Avatar asked Jan 11 '12 18:01

Jason Buehler


1 Answers

ActiveAdmin.register_page "Google" do
  menu :priority => 1, :label => 'Google' , :url => 'http://google.com'
 end
like image 172
Fivell Avatar answered Oct 05 '22 22:10

Fivell