TailwindUI Calendar
Play
40:00 CC

TailwindUI Calendar

#383 Jan 8, 2023 pro
The TailwindUI library provides static styled HTML examples, but this can be difficult to translate into a Rails application. In this episode, we take a look at one of the calendar examples and make it interactive with displaying days that have events as well as returning events on selected days.

Custom Turbo Stream Actions
Play
15:20 CC

Custom Turbo Stream Actions

#382 Jan 1, 2023 free
With the release of Turbo 7.2, we gained the ability to create custom actions in Turbo. This allows us to trigger functions on the client side that would have been difficult or cumbersome to do in the past. In this episode, we look at setting up custom actions and how to use them.

Inline Editing with Turbo
Play
10:32 CC

Inline Editing with Turbo

#381 Dec 25, 2022 pro
Using Turbo, we can create an interactive inline editing feature without writing any Javascript. In this episode, we look at some of the nuances with Turbo Streams and handling form errors.

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.

Cloudflare Turnstile
Play
14:30 CC

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.