In my navigator, I want my buttons to become active (shaded) when I click on them. Right now, I can only make them active or inactive for a long time, but I donโt know how to change it as soon as I click on them. I am using the new Bootstrap (3.0).
For instance:
Non-active
<li><%= link_to "Contact", contact_path %></li>
Active
<li class="active"><%= link_to "About", about_path %></li>
I want it to be active / inactive depending on whether the current page is selected or not.
source share