Question

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 offer a solution.

Was it helpful?

Solution

Does adding this before you require 'bcrypt' help?

require 'rubygems'
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top