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.

generates_token_for
Play
7:55 CC

generates_token_for

#380 Dec 18, 2022 pro
In Rails 7.1, we're going to get a new feature that will allow us to generate tokens for attributes. With generates_token_for, a token can embed data from a record. When using the token to fetch the record, the data from the token and the data from the record will be compared.

Optical Character Recognition
Play
14:20 CC

Optical Character Recognition

#405 Jun 11, 2023 pro
Make your Active Storage uploads searchable with Optical Character Recognition (OCR). In this episode, we'll look at uploading documents with Active Storage and then using a gem to perform the optical character recognition on the uploaded files.

Rate Limiting from Scratch
Play
22:00 CC

Rate Limiting from Scratch

#406 Jun 18, 2023 pro
Ever wonder how some companies implement rate limiting based on the plan that you've signed up for? In this episode, we'll use Docker Hub as a case study and implement this feature within our Rails application. We'll do this by creating a custom Rack Middleware to track and throttle the requests.

Intervals and Timeouts
Play
11:40 CC

Intervals and Timeouts

#412 Jul 30, 2023 pro
In this episode, we create two different stimulus controllers for handling refresh intervals and timeouts. Using Turbo, with these stimulus controllers, we are able to create a simple solution refreshes on an interval or timeout.