From the course: Adding Stripe Payments to Your Ruby on Rails Application

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Adding users

Adding users

- [Instructor] So the next pieces we need to open up are gem file, and we can go down to the bottom and add a gem called devise in order to add user accounts to our application. There's one small adjustment I want to add here and that is the B crypt gem. If you're using Windows and Ruby 2.3 or higher, the Ruby gems version doesn't come with the C extension which will cause a bug to come up later on when you register your first user with devise. It's kind of tricky, and the solution for it is to just compile the gem and the C extension from the source code. So we'll grab that from GetHu.com codohale B crypt ruby. And specify that. This line will make sure that the source code of the gem gets downloaded and the C extension gets compiled so that will fix the missing C extension problem on Windows. And this is not going to cause ant issues, if you want to use the same B crypt line in your gem file on Mac or Linux, as well. So I'll update the exercise files to include this. But that's why…

Contents