I to the part of the tutorial where a User model is created. It has
the following attributes:
id :integer(4) not null, primary key
name :string(255)
email :string(255)
created_at :datetime not null
updated_at :datetime not null
password_digest :string(255)
Then in an rspec test file the author issues this command:
before do @user = User.new(name: “Example User”, email: “[email protected]”,
password: “foobar”, password_confirmation:
“foobar”)
end
Now he says that password and password_confirmation are created
temporarily in memory and don’t need to go into the database. But
when I try to run this rspec test it gives me an error stating unknown
attribute: password.