title: Undefined method attr_accessible error for User
body: <p>I'm trying to create a login of sorts. I created a User scaffold and have this code in my user.rb</p>
  
  <pre><code>class User &lt; ActiveRecord::Base
  attr_accessible :name,  :password_digest, :password, :password_confirmation
  
  has_secure_password
  end
  </code></pre>
  
  <p>I keep getting this error</p>
  
  <pre><code>undefined method `attr_accessible' for #&lt;Class:0x396bc28&gt;
  
  Extracted source (around line #2):
  1
  2
  3
  4
  5
  
  class User &lt; ActiveRecord::Base
    attr_accessible :name,  :password_digest, :password, :password_confirmation
  
    has_secure_password
  end
  
  Rails.root: C:/Sites/web
  </code></pre>