I decided to fix this problem by overwriting the ActiveAdmin menu. It was also necessary to create new CSS in the new menu.
Tell ActiveAdmin that we will use the header itself. To do this, add the following lines to the config / initializers / active_admin.rb file :
config.view_factory.header = CustomAdminHeader config.register_stylesheet 'new_menu.css'
Create a CustomAdminHeader class that will contain code that will overwrite the build menu. You can create this class in the / admin application and name it as custom_admin_header.rb . And add this code to create a new menu:
class CustomAdminHeader < ActiveAdmin::Views::Header include Rails.application.routes.url_helpers def build(namespace, menu) div :id => 'tabs' do
The structure of your menu will be created by this class, so the menu options used in the classes contained in the app / admin folder should not be displayed. To do this, you need to add the following code in all classes:
menu false
Finally, you need to create a CSS file called new_menu.css and add CSS for the new menu.
I posted this solution on my blog:
http://monteirobrena.wordpress.com/2013/05/07/activeadmin-customizacao-do-menu/
I hope this will be useful to everyone.
source share