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):
<
Use this instead to select active link in nav based on the current route without server code:
$(document).ready(function () { $('a[href="' + this.location.pathname + '"]').parent().addClass('active'); });