Bcrypt Error: Devise Ruby 2.0 and Rails 4.0

LoadError in Devise::SessionsController#create -- cannot load such file -- bcrypt_ext

I solve the above issue by typing following commands:

gem uninstall bcrypt-ruby

after that we need to reinstall

gem install bcrypt --platform=ruby

now we need to add below code in the gem file

gem 'bcrypt', platforms: :ruby

by performing above steps bcrypt issue is resolved.

Rails 4 Devise error?

I just had this problem in a brand new Rails 4 app and it was because I forgot to run

rails g devise:install

as indicated in the Getting Started section in the readme in the Devise project.

getting error for Could not find bcrypt-3.1.11

Uncomment this line of your Gemfile:

# Use ActiveModel has_secure_password
gem 'bcrypt', '~> 3.1.7'

and run bundle install again.



Related Topics



Leave a reply



Submit