Advanced Rails with Hotwire Turbo frontend - filterable content with sidebar navigation links

Опубликовано: 27 Март 2026
на канале: Winston Codes On
1,221
21

In this video I give a big picture overview of the structure of my small Rails app and how it makes use of Turbo frames for a dynamic end-user experience.

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

Tip me in BTC! Bitcoin Address: 13FKUusPH1UPvgSkoQRRy6hEg4hyMqKzLS

0:00 Demo of newly added sidebar feature
3:30 Rails app controller and template structure
4:49 Abstraction for better reuse of Turbo frames
7:03 Eager loading Turbo frames
9:49 Ruby `then` for method chaining
11:43 Rendering Turbo stream vs regular HTTP navigation with Turbo frame
14:50 Why it's easy to end up with orphaned code in Ruby
16:22 Eager loading vs lazy loading
17:21 Deliberating whether to abstract/DRY up some duplicative renderings
19:33 Using `target: "_top"` to replace the browser navigation URL