On 1 December 2014 at 15:38, Walter Lee Davis <[email protected]> wrote:
>
> On Dec 1, 2014, at 10:32 AM, Roelof Wobben <[email protected]> wrote:
>
>> Hello,
>>
>> I did all the steps from the Hartl tutorial but as soon as I do this :
>>
>>   User.create(name: "Michael Hartl", email: "[email protected]",password: 
>> "foobar", password_confirmation: "foobar")
>>
>> on the rails console, I see this error message :
>
> Make sure that your Gemfile looks EXACTLY the same as SeƱor Hartl's. I am 
> betting you are missing the bcrypt library. (It's commented out in a default 
> `rails new` generated site.
>
> # To use ActiveModel has_secure_password
> # gem 'bcrypt-ruby', '~> 3.0.0'

Also did you create the password_digest field in the database as in
listing 6.32 and run db:migrate?  Check in db/schema.rb to see if that
field exists, and make sure it is spelled correctly.

Colin

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLuS0oJjS-6emZZDTB3GJVv4%2BUe2k1mcZYnB7uN0v4Dkzw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to