title: Changing classes for current page nav link in rails
body: <p>Sorry I don't know what the title should be so someone please change it to best fit my question.</p>
  
  <p>Basically, I have a list like this:</p>
  
  <pre><code>&lt;li class="active"&gt;&lt;%= link_to "Home", root_path %&gt;&lt;/li&gt;
  &lt;li&gt;&lt;%= link_to "About", about_path %&gt;&lt;/li&gt;
  &lt;li&gt;&lt;%= link_to "Contact", contact_path %&gt;&lt;/li&gt;
  </code></pre>
  
  <p>depeding on what page I am on (Home, About, Contant), I want the corresponding <code>&lt;li&gt;</code> tag to have <code>class="active"</code> attribute. What the best way to do this?</p>
  
  <p>I have a class variable @title set to whatever page is being navigated.</p>