title: syntax error, unexpected tIDENTIFIER, expecting ';' or '\n'
body: <p>I just copied and pasted code from tutorial in my file models/post.rb</p>
  
  <pre><code>class Post &lt; ActiveRecord::Base
    attr_accessible :content, :name, :title
  
    validates :name,  :presence =&gt; true
    validates :title, :presence =&gt; true,
                      :length =&gt; { :minimum =&gt; 5 }
  end
  </code></pre>
  
  <p>and am getting an error:</p>
  
  <pre><code>SyntaxError: /home/row/blog/app/models/post.rb:1: syntax error, unexpected tIDENTIFIER, expecting ';' or '\n'
    ...idates :name,  :presence =&gt; true
  ...                               ^
  </code></pre>
  
  <p>I made some changes in the code like:</p>
  
  <pre><code>class Post &lt; ActiveRecord::Base
    attr_accessible :content, :name, :title
  
    validates :name,  :presence =&gt; true
    validates :title, :presence =&gt; true, :length =&gt; { :minimum =&gt; 5 }
  end
  </code></pre>
  
  <p>But the same error appears. I am confused.</p>