-
Getting Started with Rails 7 Episode 14: Refactor into Comment Partials
This is the 14th video in the Getting Started with Rails 7 series. In this video Mike starts section 9 of the Getting Started guide on refactoring. He makes use of the previously introduced concept of partials to refactor the comment display and the comment form into partials that the articles show view renders. This…
-
Codecast: Getting Started with Rails 7 Episode 11: Use a Scaffold Generator to Quickly Produce a Resource
“Do you mean to tell me that we could have done all the work from the previous ten videos in half an hour?!” Yes. (But the purpose of the Getting Started with Rails guide is education, so it slowed things down, added them in incrementally, and explained them.) This is the 11th video in the…
-
Getting Started with Rails 7 Episode 9: Update an Article and Use Form Partials
This is the 9th video in the Getting Started with Rails 7 series. In this video Mike implements the edit and update actions, refactors repeated form code from the new and edit views into a form view partial, and refactors repeated code in the ArticlesControllerTest into shared assertion helper methods. This video covers: The code…
-
Getting Started with Rails 7 Episode 8: Model Validations and Form Error Messages
This is the 8th video in the Getting Started with Rails 7 series. In this video Mike demonstrates that you can currently create an Article record with an empty title and body. In order to solve the problem, he uses Rails model validations to ensure the data for the Article record is in good order…
-
Getting Started with Rails 7 Episode 7: Create Articles in the Application
This is the 7th video in the Getting Started with Rails 7 series. In this video Mike adds tests and implements the create and new methods for the Article resource, allowing for the creation of an Article record via the application. Following the guide, he first implements create with hardcoded values for the title and…