开发者

Require 'bcrypt' failing on multiple operating systems, what am I missing?

开发者 https://www.devze.com 2023-02-07 10:45 出处:网络
I\'m trying to work in a simple authentication to replace the HTTP-Auth I\'ve got in a small Sinatra application. bcrypt-ruby gem installs fine but require \'bcrypt\' always throws an error: no such f

I'm trying to work in a simple authentication to replace the HTTP-Auth I've got in a small Sinatra application. bcrypt-ruby gem installs fine but require 'bcrypt' always throws an error: no such file to load -- bcrypt. I've confirmed the installation in my gem list, never had a similar error with another gem and while there's a fair amount of search results for bcrypt & not found errors, none of them o开发者_Go百科ffer a solution.


Does adding this before you require 'bcrypt' help?

require 'rubygems'
0

精彩评论

暂无评论...
验证码 换一张
取 消