Tags from Scratch
Play
22:19 CC

Tags from Scratch

#452 Apr 14, 2024 pro
In this episode, we create a tagging system for models that is highly reusable. We'll explore creating the tagging system, filtering on tags and persisting the tags in an unobtrusive way.

Previous/Next Record
Play
9:54 CC

Previous/Next Record

#449 Mar 31, 2024 pro
In this episode, we'll explore the process of creating Previous and Next links for a record, but then refactor it to be more maintainable.

Counter Culture
Play
14:02 CC

Counter Culture

#435 Dec 31, 2023 pro
The provided ActiveRecord counter caching mechanism provides some great basic functionality, but quickly becomes insufficient if you need more complex totaling or summing of records. In this episode, we'll look at implementing the counter_culture gem to gain extra functionality.

Rails Organization
Play
19:12 CC

Rails Organization

#430 Nov 26, 2023 pro
In this episode, we look at refactoring a model with a few different approaches; modules, classes and concerns. We'll explore each implementation and when I'd use one over the other.

readonly?
Play
9:43 CC

readonly?

#426 Oct 29, 2023 pro
In this episode, we look at making records read-only and also creating an override functionality where we can force the record to save. We'll also look at error handling when a record update is made to a read-only record.