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

后端 未结 6 721
伪装坚强ぢ
伪装坚强ぢ 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:46

    In your Gemfile add a line

    gem 'bcrypt-ruby'
    

    and then from the command line

    bundle install
    

提交回复
热议问题