title: Ruby on Rails undefined method `attr_accessible' and 'before_save'?
body: <p>I recently started a new RoR project, and copied some of my old code from about 6 months ago.</p>
  
  <p>For some reason, I'm getting the following error in my User model:</p>
  
  <pre><code>undefined method `attr_accessible' for User:Class
  </code></pre>
  
  <p>When I comment the attr_accessible line out, I then get a similar error in the same file:</p>
  
  <pre><code>undefined method `before_save' for User:Class
  </code></pre>
  
  <p>And when I comment that out, I get another one:</p>
  
  <pre><code>undefined method `validates' for User:Class
  </code></pre>
  
  <p>Why would attr_accessible and before_save be undefined methods?  I thought those were built in to Ruby on Rails!?</p>