I use this method:
Give each li an id (i.e. app_nav_li_projects, app_nav_li_files)
Set @li_to_select in your controller or controller method to the li id
want to select
Use JQuery on the page to add the selected class to the li id of the
My JQuery looks like this:
Note that your JQuery has to be in the page so the @li_to_select is
On Thu, Oct 7, 2010 at 12:16 AM, nobosh [email protected] wrote:
Projects is Active
You received this message because you are subscribed to the Google G.
“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][email protected]
For more options, visit this group at
Joshua S. Martin
CONFIDENTIALITY NOTE: This e-mail message, including any attachment(s),
contains information that may be confidential, protected by the attorney
client or other legal privileges, and or proprietary non public
If you are not an intended recipient of this message or an authorized
assistant to an intended recipient, please notify the sender by replying
this message and then delete it from your system. Use, dissemination,
distribution, or reproduction of this message and or any of its
(if any) by unintended recipients is not authorized and may be unlawful.