How to highlight a navigation menu partial according to what url the user is on?

zahbudar

New Member
I have a partial called \[code\]_navigation.html.erb\[/code\] in my \[code\]views/shared/\[/code\] folder:\[code\]<ul> <li class="active">Home</li> <li>About</li></ul>\[/code\]What's the "Rails" way to make this navigation menu highlight the appropriate link? Does Rails have a way to determine the current URL and should I even use that?
 
Back
Top