Error with bcrypt in Rails 5.1

0

In a new project, after installing Gemfile gems, how much do I try to start the server with rails s the following error and displayed in the console:

LoadError: cannot load such file -- 2.3/bcrypt_ext
    
asked by anonymous 14.12.2017 / 12:57

1 answer

0

Uninstall gems for bcrypt and reinstall as in the last line below:

gem uninstall bcrypt-ruby
gem uninstall bcrypt
gem install bcrypt --platform=ruby

Then in your Gemfile, replace the line with bcrypt with

gem 'bcrypt', '~> 3.1.11'

Stop the Rails server and run bundle install and then start the server again.

Some possible solutions can also be seen here .

    
27.12.2017 / 04:34