can't activate bcrypt-ruby (~> 3.0.0), already activated bcrypt-ruby-3.1.1. Make sure all dependencies are added to Gemfile

后端 未结 9 2004
不知归路
不知归路 2020-12-03 05:13

I have Rails 4.0.0 app. When I run bundle install command there is no problem. This is my GemFile.

source \'https://rubygems.org\'

# Bundle edge Rails inste         


        
相关标签:
9条回答
  • 2020-12-03 06:08

    Add; gem 'bcrypt-ruby', '~> 3.1.1' to your gemfile

    Or if you specifically want 3.0.0, follow Maximus's advice and add: gem 'bcrypt-ruby', '3.0.0'

    Then bundle update bcrypt-ruby.

    You might also want to try deleting your gemfile.lock and re-running bundle install.

    0 讨论(0)
  • 2020-12-03 06:09

    For me it worked by just deleting the dependency for version of bycript in the /active_model/secure_password.rb for development test environment.

    I always made sure to add it in production just to 100% safe

    0 讨论(0)
  • 2020-12-03 06:10

    I had the same problem. Add

    gem 'bcrypt-ruby', '~> 3.0.0'

    then run bundle install and the restart the server. Worked for me

    0 讨论(0)
提交回复
热议问题