CRUD operations in Turbo/Stimulus Rails - Practical Examples

Опубликовано: 01 Апрель 2026
на канале: Winston Codes On
1,560
16

Some of the important topics covered in this episode include a review Turbo frames, Turbo streams, how to communicate between Stimulus controllers using Javascript events, and how to make asynchronous links to DELETE endpoints with Turbo Rails.

Source code link (must be a Patreon member to access):
https://github.com/wakproductions-pat...
  / winstonkotzan  

Tip me in BTC! Bitcoin Address: 13FKUusPH1UPvgSkoQRRy6hEg4hyMqKzLS

Outtro Music:
CO.AG - Escape the Apex
   • Escape the Apex -  Futuristic Sci-fi Elect...  

0:00 Recap of the Stonknotes Journal app code
4:08 Showing the turbo frame that needs to be reloaded to swap out a modal form for edit mode
6:52 How the modal form gets toggled and properly loaded for "new" (CREATE) operation
9:55 Make your Stimulus controllers generic and reuseable
10:53 Hotwire's messy Javascript structure may be problematic for very large scale enterprise projects
13:39 Edit button for individual items (UPDATE) operation
14:40 Delete button for individual items (DELETE) operation