This is the 13th video in the Getting Started with Rails 7 series. In this video Mike generates the CommentsController
and adds a nested resource form to the articles show view. Then he updates the app with functionality for creating and displaying comments.
This video covers:
- 00:00:10 Introduction
- 00:02:21 Generate the CommentsController and review
- 00:05:37 Add form to create comment to articles show view after writing failing assertions
- 00:10:36 Write failing test for comments create controller action
- 00:15:17 Incrementally add comments create action to get test to pass
- 00:19:23 Demonstrate working comments create in UI, but not showing the comments yet.
- 00:20:20 Test-driven addition of displaying comments for an article
- 00:25:10 Review, commit, push
The code for this series is open source and available on GitHub. View the commit for this video here.