I think I figured out what happened. I installed bcrypt-ruby and ran bundle install but never restarted the server. Everything's working now.
On Saturday, May 12, 2012 7:08:33 PM UTC-5, mike wrote: > > I'm going through DHH's Agile Web Development with Rails for Rails 3.1. In > chapter 14 they create a Users sign-in model/view/controller using the > has_secure_password method. My user.rb file looks like this > > class User < ActiveRecord::Base > attr_accessible :name, :password_digest, :password, > :password_confirmation > validates :name, presence: true, uniqueness: true > has_secure_password > end > > now when I go to localhost:3000/users/new I first get some kind of > bcrypt-ruby error and then when I reload the page I get a undefined method > `key?' for nil:NilClass > > I don't know what needs to be done, mike > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/ICR6IJBHDD8J. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

