Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

submenu's parent item should be active #1

Open
dallas opened this issue Oct 26, 2009 · 0 comments
Open

submenu's parent item should be active #1

dallas opened this issue Oct 26, 2009 · 0 comments

Comments

@dallas
Copy link

dallas commented Oct 26, 2009

Hi.

I'm using your ubermenu view helper and I've come across a problem. I've got a main menu with various submenus. For many of my submenu items, I'm declaring :current => controller.controller_name == "some_controller" which works fine for the exact current_page? match (when I click on the submenu item, both it and its parent are "current") but not for other actions in the same controller (no item in the main menu is "current"). Am I doing something incorrectly or should the parent stay "current" when any of its descendants are "current"?

Also, I tried setting :force_current => true on both the main menu item and a submenu item with the same result.

Any help would be appreciated, thanks.
Dallas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant