I have a navigation menu that contains a link per controller in my
This menu is the same for all controllers, but I want this behaviour:
depending on the page you’re currently on.
I’ve put a <render :partial => “_menu”> in the layout/application.rhtml
file that is used as layout for all views. And in every view map, I then
define a _menu.rhtml partial.
This is of course not flexible enough, since when I want to change some
name, I have to make changes in all these files.
What is a better way?