title: Question about routes.rb
body: <p>Rails newbie here.</p>
  
  <p>Can anyone please explain the difference to me between the following lines of code:</p>
  
  <pre><code>match '/' =&gt; 'posts#index'    
  </code></pre>
  
  <p>and</p>
  
  <pre><code>match '/' =&gt; 'posts#index', :as =&gt; 'posts'     
  </code></pre>
  
  <p>The reason I'm asking is because when I use the latter code, I cannot create new posts :|</p>