-
-
Notifications
You must be signed in to change notification settings - Fork 317
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
fix render_menu
for custom controllers
#1746
fix render_menu
for custom controllers
#1746
Conversation
render_menu
for custom controllersrender_menu
for custom controllers
render_menu
for custom controllersrender_menu
for custom controllers
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any failing test case you could provide?
As for the testing infrastructure: The dummy app has custom controllers and models (Event
and Location
). Feel free to add another custom controller that reproduces the issue right in the dummy app.
Hopefully a rebase with latest master fixes the test issues
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Tested this locally and this works as expected.
Since you need to rebase with latest master
to fix the CI builds, would you mind to clean up this PR a little bit?
Thanks again for contributing 🚀
without the explicit path the current controller name will be prepended to the view path
Without the explicit path the current controller name will be prepended to the view path.
- Sortable menus [#1758](#1758) ([mamhoff](https://github.com/mamhoff)) - Programmatic menus [#1756](#1756) ([mamhoff](https://github.com/mamhoff)) - Fix syntax in non-erb Menu templates [#1751]((#1751)) ([Alexander ADAM](https://github.com/alexanderadam)) - Fix `render_menu` for custom controllers [#1746]((#1746)) ([Alexander ADAM](https://github.com/alexanderadam))
What is this pull request for?
without
partial:
the current controller name will be prepended to theview path.
Checklist
test
dependencyEDIT: Sorry, I guess I misnamed it. It seems to be working within a custom controller. It does not work within devise controllers.