title: Best way to add "current" class to nav in Rails 3
body: <p>I have some static pages in a navigation menu. I want to add a class like "current" to the item which is currently displaying.</p>
  
  <p>The way I am doing so is to add tons of helper methods (each for one item) to check the controller and action.</p>
  
  <pre><code>def current_root_class
    'class="current"' if controller_name == "homepage" &amp;&amp; action_name == "index" 
  end
  
  &lt;ul&gt;
    &lt;li &lt;%= current_root_class %&gt;&gt;&lt;%= link_to "Home", root_path %&gt;
  </code></pre>
  
  <p>Is there any better way to do so!? My current way is so stupid......</p>