how to style currently active link

i don't see your code, but generally it works like this:   <%= link_to "Link name", { :controller => 'controller_name', :action => 'action_name' }, :class => 'someclass' %>

then you style your "someclass" via css.

I think that you're looking for something like that....

<%= link_to_unless_current('Add contact', new_contact_url, :class => 'adduser') { link_to('Add contact', new_contact_url, :class => 'selected') } %>

http://apidock.com/rails/ActionView/Helpers/UrlHelper/link_to_unless_current

Adam Akhtar escribió: