July 2020
Beginner
582 pages
11h 44m
English
We learned in previous chapters that Active Record gives us the tools we need to perform a variety of activities on our models. For example, we added validations to our User model to make sure email addresses are unique and valid. We also added a callback to our Comment model to email the article’s author anytime a comment is created. We were able to pass instances of these models to the form_with helper in their ...
Read now
Unlock full access