Error stating that “bcrypt-ruby is not part of the bundle”, how can I add bcrypt-ruby to Gemfile?

后端 未结 6 728
伪装坚强ぢ
伪装坚强ぢ 2021-01-11 12:10

When I add has_secure_password to the model (inherited from ActiveRecord::Base), error stating that \"bcrypt-ruby is not part of the bundle\" occurs.

Here the log is

6条回答
  •  日久生厌
    2021-01-11 12:53

    Restart the server and reinstall bundle in correct order, that is:

    bundle install, bundle update, bundle install
    

    and then server restart.

提交回复
热议问题