I am getting the following error and I have no idea what to do.
I have tried all the available solutions on internet but I cannot get rid of this problem. I am attaching the screen shot of the error.
I am using mysql2, rails version is "Rails 5.0.1" and ruby version is "ruby 2.3.3p222".
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.