I am trying to upgrade a very small devise application to ruby 2 and rails 4. I get a missing bcrypt-ruby (a dependency of devise) error when I try to start the rails server or input db commands.
How can I force devise to use the newer version of bcrypt-ruby that is in the gemfile (3.1.1) and not the auto installed dependency (3.0.1) because adding "bcrypt-ruby 3.1.1" to gemfile and running bundle update/install does does not seem to solve the problem.
$ rails s
You have requested:
bcrypt-ruby = 3.1.1
The bundle currently has bcrypt-ruby locked at 3.0.1.
Try running `bundle update bcrypt-ruby`
Run `bundle install` to install missing gems.
Gemfile:
gem 'bcrypt-ruby', '3.1.1', :require => 'bcrypt'
Gemfile.lock
devise (3.0.0)
bcrypt-ruby (~> 3.0)