zorab47 / active_admin-subnav

Enhanced sub-navigation for nested ActiveAdmin resources
MIT License
20 stars 5 forks source link

belongs_to 'Place holder' ? #8

Closed mabdelfattah closed 7 years ago

mabdelfattah commented 7 years ago

Currently if you make 'Parent' in active_admin menu, it'll be a place holder (not linked to a page). I want to do the same with sub-menu, here's an example:

Main Menu (Place Holder)

jstumbaugh commented 7 years ago

Currently, we support place holders in the subnav.

Given the structure of the menu:

Both the Daily Active Users page and Unsubscribed Users resource can be created by the following:

ActiveAdmin.register_page "Daily Active Users" do
  belongs_to :data
  menu parent: "Reports"
end
mabdelfattah commented 7 years ago

Thank you.