I am using a layout in a Ruby project. Basically it just displays the header with logo, navigation, and then yields for the content. After the content is displayed, the layout takes care of displaying the footer.

What I would like to do...is somehow display which link is active in the CSS menu...which again, is located in the layout.

Is this possible? Would it be better to just move the navigation code into each view? I could get that to work of course...but I would have to change code in all the views should my categories/nav bar change.

I think I worded that in a way that makes sense?