Hi All -
Just a warning for those of you following the second edition of this book using a Windows 10 machine. The devise gem requires bcrypt and this library is very volatile in the Windows environment. I had to jump through hoops to get the bcrypt_ext to work right. It seems like every time you add new item to that gemfile and run bundle install it always fails asking to install bcrypt (3.1.11). In order to get devise to install at all I had to use bcrypt-ruby version 3.1.5. So I got up to the Testing chapter in the book and it asks for the rspec gem to be installed and sure enough I got the bcrypt error again after running bundle install. If you are following along on a Windows 10 machine, I would advise installing all the gems at once in the Gemfile and don’t touch it again to prevent this from happening to you.
I know this isn’t Dave’s fault and the book is a great read but just wanted to save you some frustration.
===UPDATE=== I discovered that if you do a “gem install rspec -v ‘3.0.1’” for example before running the “bundle install” on Windows it will go through fine without giving the bcrypt error.