blog icon indicating copy to clipboard operation
blog copied to clipboard

Can't mass-assign protected attributes: password, password_confirmation

Open arjunmenon opened this issue 12 years ago • 0 comments

Hey I am getting this error when i try to load the seeds.db file moreover, adding a user from rails console gives the same error. i am in chapter 6 this are the initial lines in my user.rb file -

require 'digest'
class User < ActiveRecord::Base
   attr_accessible :email
   attr_accessor :password

rest is as is in the tutorial. thanks.

arjunmenon avatar Oct 07 '13 09:10 arjunmenon