title: Best way to create a simple menu in a rails application
body: <p>I have a simple menu that looks like this:</p>
  
  <pre><code>&lt;ul class="menu"&gt;
       &lt;li class="active"&gt;&lt;a href="&lt;%= root_path %&gt;"&gt;Home&lt;/a&gt;&lt;/li&gt;
       &lt;li class=""&gt;&lt;%= link_to 'Feeds' , feeds_path %&gt;&lt;/li&gt;
       &lt;li class=""&gt;&lt;%= link_to 'Accounts' , accounts_path %&gt;&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>Class "active" is the style to mark my current page.</p>
  
  <p>I have two questions:<br>
  1. How do I "tell" the app what page I am on and ask it to "change" the class to active?<br>
  2. Is there a better way to create this menu (maybe driven by the controller or a db table)?</p>
  
  <p>I realize this is a newbie question, but I have been thinking about this for a few days now, have read some tutorials, but none of them really click.</p>
  
  <p>Thanks for your help.</p>