E
E
Evgeny Strashko2015-10-24 22:13:20
Ruby on Rails
Evgeny Strashko, 2015-10-24 22:13:20

How to remove an ActiveAdmin menu item?

There is a rails application with ActiveAdmin, it has a test_tables.rb controller. In the dashboard, you need to remove the menu item for this controller.

ActiveAdmin.register_page "TestTable" do
  menu :parent =>'else', :priority => 1, :label => I18n.t('manage.menu.test_table'), :if => proc { admin? }

  content do
    render 'admin/test_tables/index.html.haml'
  end
 .....
end

Tried to change to menu false. There is no result, the menu item is in place. Even removing the controller does not change the situation.
UPD In unicorn, everything is the same, but if you run the application through rails s, everything is ok.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question