Need a second level menu
Does activeadmin support second-level menus? For example, I tried the following: "Security" under "Resources" and "Cybersecurity" and "Disaster plans" under "Security"
ActiveAdmin.register_page 'Safety' do
menu parent:'Resources'
content do
render template: 'safety/safety'
end
end
ActiveAdmin.register_page 'Cyber Security' do
menu parent: 'Safety'
content do
render template: 'safety/cyber_security'
end
end
ActiveAdmin.register_page 'Emergency Plans' do
menu parent: 'Safety'
content do
render template: 'safety/emergency_plans'
end
end
This does not work. I just see the Security menu item in the dropdown, but I don't see the other three. We are using version 0.6.6 from activeadmin.
Question: Does this version or any new version of Active-admin support layered menus? If so, how can I do this?
+3
source to share
1 answer
It has limited support with a function navigation menu
, see the docs on own_to . Beyond that, but take a look at active_admin-subnav I hope you consider ActiveAdmin 1.x for newer versions of Rails.
+3
source to share