有没有人遇到这个问题:
LoadError (cannot load such file -- bcrypt)
在 Rails 5 应用程序中?
我的模型是这样的:
class User < ApplicationRecord
validates :name, presence: true, uniqueness: true
has_secure_password
end
我已经捆绑安装了 bcrypt(在我的 Gemfile 中)。我可以在 irb 中使用它,但我的 rails 应用程序出现此错误。
我正在使用 Mac OS X Sierra 和 Ruby 2.3.1。