Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby User Authentication with Rails Password Hashing and Sign In Using has_secure_password

gem 'bcrypt-ruby', '~> 3.1.2' or gem 'bcrypt', '~> 3.1.2' ? I am getting different errors with each of these

?

2 Answers

Hey this is a really old question, but if you're getting this error:

"You don't have bcrypt-ruby installed in your application. Please add it to your Gemfile and run bundle install"

The fastest way to fix it is to delete your gemfile.lock, add '~> 3.0.0 to the end of 'bcrypt-ruby' to enforce verson 3.0.1 and bundle install. Everything should work after that.

Stone Preston
Stone Preston
42,016 Points

what errors are you getting? RubyGems was facing a DDOS attack earlier so you may not be able to install new gems

here is the status on twitter