-
Getting Started with Rails 7 Episode 26: Fix Rich Text Fixtures and Validations
This is the 26th video in the Getting Started with Rails 7 series. In this video Mike fixes some errors from the Use ActionText for Rich Text Content video (episode 24). The two main fixes are This video covers: The code for this series is open source and available on GitHub. View the commit for…
-
Getting Started with Rails 7 Episode 17: Refactor Tests
This is the 17th video in the Getting Started with Rails 7 series. In this video Mike refactors the existing tests to move shared tests between models to a helper module that both test classes include. In addition, he creates a method to test that all fixtures are valid for each model. After that, he…
-
Codecast: Getting Started with Rails 7 Episode 16: Refactor Repeated Code Using Concerns
This is the 16th video in the Getting Started with Rails 7 series. In this video Mike refactors the code written in the last video into a module called Visible that extends ActiveSupport::Concern. This module becomes the new home for the status-related code for both articles and comments. The two models both include the Visible…
-
Getting Started with Rails 7 Episode 15: Prepare for Concerns
This is the 15th video in the Getting Started with Rails 7 series. In this video Mike provides an overview of modules, mixins, and concerns. Then he sets up a status field that has duplicated functionality between the Article and the Comment. In this episode he gets everything set up and working so that he…