I\'m getting this error when i try to create new User, like this
>> User.create(:email=>\"nandosousafr@gmail.com\", :password => \"hello\")
BCrypt::E
What if you tried reinstalling the bcrypt-ruby
gem?
# Remove all versions of bcrypt-ruby
sudo gem uninstall bcrypt-ruby
# Install the latest version
sudo gem install bcrypt-ruby
Reinstalling bcrypt-ruby hasn't worked for me.
The bug got fixed in bcrypt-ruby >= 3.1.10, but Rails 3.2 locked on bcrypt-ruby 3.0.x.
Solution would be to either: