Skip to content

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

@arjunmenon

Description

@arjunmenon

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions