title: Ruby on rails link_to syntax
body: <p>After following a <a href="http://guides.rails.info/getting_started.html" rel="noreferrer">tutorial</a> Ive found. Im now redoing it again, without the scaffolding part, to learn it better.</p>
  
  <p>However, editing my \app\views\home\index.html.erb to contain:</p>
  
  <pre><code>&lt;h1&gt;Rails test project&lt;/h1&gt;
  &lt;%= link_to "my blog", posts_path&gt;
  </code></pre>
  
  <p>I get an error:</p>
  
  <pre><code>undefined local variable or method `posts_path' for #&lt;ActionView::Base:0x4e1d954&gt;
  </code></pre>
  
  <p>Before I did this, I ran <code>rake db:create</code>, defined a migration class and ran <code>rake db:migrate</code>, everything without a problem.</p>
  
  <p>So the database should contain a posts table. But that <code>link_to</code> command cant seem to find <code>posts_path</code>. That variable (or is it even a function?) is probably defined through the scaffold routine. </p>
  
  <p>My question now is; how do I do that manually myself, define <code>posts_path</code>? </p>