Click here to navigate the course.

Drag the edges to resize the window.

In Projects, you can keep track of your progress as you go throught the tasks. Check each item as you complete it!

Code Editor
Web Browser

What did we just do?

  1. We created a model named User.
  2. In the model, we used the method has_secure_password. This method adds functionality to save passwords securely.
  3. In order to save passwords securely, has_secure_password uses an algorithm called bcrypt. To use bcrypt, we added the bcrypt gem to the Gemfile.

Now that the User model is set up, let's continue by adding columns to the migration files.

Report a Bug
If you see a bug or any other issue with this page, please report it here.