generates_token_for
Play
7:55

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.

Cloudflare Turnstile
Play
14:30

Cloudflare Turnstile

#379 Dec 11, 2022 pro
Cloudflare Turnstile delivers frustration-free, CAPTCHA-free web experiences to website visitors. In this episode, we'll look at implementing this a few different ways and resolving some issues with Turbo.

Database Transactions
Play
9:47

Database Transactions

#377 Nov 27, 2022 pro
Transactions are protective blocks where SQL statements are only permanent if they can all succeed as one atomic action. In this episode, we explore ActiveRecord Transactions and how to use them.

Active Storage Variants
Play
11:25

Active Storage Variants

#376 Nov 20, 2022 pro
In this episode, we look at cleaning up our Active Storage variants and also look at several different use cases to manipulate the images with resizes, watermarks, format and quality.

Creating Embedded Iframes
Play
17:34

Creating Embedded Iframes

#375 Nov 13, 2022 pro
Similar to Youtube embeds, we will look at creating embedded links to our application so that portions of the application can be embedded. However, there are a lot of security implications and should be done with caution.