Sara Sara - 4 months ago 21
Ruby Question

My bcrypt gem isnt working

I have successfully installed

bcrypt - 3.1.7
, and bundle installed after that.

However, the bcrypt gem doesnt show up in the list, when I try to bundle show bcrypt, it says:

Could not find gem 'bcrypt'.


Also, when I do:

gem 'bcrypt', '~> 3.1.7'


it says:

ERROR: While executing gem.. (Gem::CommandLineError) Unknown command bcrypt


What should I do?

Answer

instead of:

gem 'bcrypt', '~> 3.1.7'

try:

gem install bcrypt -v 3.1.7