Searching Multiple Models
Play
19:34 CC

Searching Multiple Models

#370 Oct 9, 2022 pro
In this episode, we look at creating a simple and maintainable way to search multiple models. As our application grows and the needs change, other avenues can be explored, but it's important to not prematurely optimize things before they're actually required.

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.

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.

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.

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.