I'd like some advise on how you handle marking website menus as 'selected' so that you can show different states based on which section of a site you're in. An example is using tabs like the illustration below. When in the first section, the tab has an outline and when moved to the next section, the second tab has the outline
+---------+ | Menu #1 | Menu #2 Menu #3 +---------+ Menu #1 | Menu #2 | Menu #3 To clarify, I know how to do the CSS etc. I'm looking for best practice on tracking this state in a Rails app. Once way that I have thought of is to link the menu to the current controller if controller == XYZ menu is selected else menu is normal end This works in simple cases but doesn't work well when using nested resources. Thanks for the help Andrew Timberlake http://ramblingsonrails.com http://MyMvelope.com - The SIMPLE way to manage your savings --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

