Hello,
I'm using the Rails 3 nav plugin simple-navigation: http://github.com/andi/simple-navigation
In the configuration file you can setup a regex to determine what element gets the ".selected" class.
Example:
primary.item :projects, 'Projects', project_path, :class => "sideNav-main", :highlights_on => /\/projects/
The above works fine for an URL like /projects/ but at this time I'm adding deep linking to the app which breaks the above.
Q: How can I update the REGEX /\/projects/
to support URLs like /#/projects/ or /#/projects/3
thanks