title: rails form_for url: posts_path error
body: <p>I was following this tutorial for rails: <a href="http://guides.rubyonrails.org/getting_started.html" rel="nofollow">http://guides.rubyonrails.org/getting_started.html</a> and I had got to the part in 5.2 where you change the line</p>
  
  <pre><code>&lt;%= form_for :post do |f| %&gt;
  </code></pre>
  
  <p>to</p>
  
  <pre><code>&lt;%= form_for :post, url: posts_path do |f| %&gt;
  </code></pre>
  
  <p>Every time I change it, I get this error:</p>
  
  <pre><code>SyntaxError in Posts#new
  
  Showing /home/hiram/rails/blog/app/views/posts/new.html.erb where line #2 raised:
  
  compile error
  /home/hiram/rails/blog/app/views/posts/new.html.erb:2: syntax error, unexpected ':', expecting kEND
  ....append=  form_for :post, url: posts_path do |f| @output_buf...
                                ^
  Extracted source (around line #2):
  
  1: &lt;h1&gt;New Post&lt;/h1&gt;
  2: &lt;%= form_for :post, url: posts_path do |f| %&gt;
  3:  &lt;p&gt;
  4:    &lt;%= f.label :title %&gt;&lt;br&gt;
  5:    &lt;%= f.text_field :title %&gt;
  Trace of template inclusion: app/views/posts/new.html.erb
  
  Rails.root: /home/hiram/rails/blog
  </code></pre>