I\'m not understanding how Twitter Bootstrap does active links for the navigation. If I have a regular navigation like this (with ruby on rails linking):
<
Here's what I did:
I created a ViewsHelper and included in ApplicationController:
include ViewsHelper
Inside ViewsHelper I created a simple method like this:
def page_state(path) current_page?(path) ? 'active' : '' end
In my view I do this:
<%= link_to 'Foobars', foobar_path %>