title: Dynamically add active class to bootstrap li in Rails
body: <p>in the bootstrap navigation bar. You can get the effect of a button being clicked by adding the class <code>active</code> . Naturally, I want to use this on my pages. For example if I'm on the about us page I want the about us button clicked. </p>
  
  <p>What is the best way to go about this? I was going to go to each page and at the bottom have a jQuery function add the class <code>active</code> to it. Is there a better way?</p>