blog
blog copied to clipboard
Can't mass-assign protected attributes: password, password_confirmation
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.