title: Creating Link with Ruby on Rails
body: <p>Obviously, I am new to this. </p>
  
  <p>I need to make a link using rails to something within the model. The code I have is this. It is probably not even the correct syntax:</p>
  
  <pre><code>&lt;li id="nav_home"&gt;&lt;%= link_to 'SOMETHING', {:controller =&gt; 'inventories', :action =&gt; 'home'} %&gt;&lt;/li&gt;
  </code></pre>
  
  <p>This code defaults to creating a text link, but I want the link element to link. Ideally it would output as so:</p>
  
  <pre><code>&lt;li&gt;&lt;a href="goes-to-something"&gt;&lt;/a&gt;&lt;/li&gt;
  </code></pre>
  
  <p>Thanks!</p>