Hotwire Weekly logo

Hotwire Weekly

Subscribe
Archives
July 13, 2025

Week 28 - Hotwire components that refresh themselves, Stimulus' Action Parameters, and more!

Discover the latest Hotwire insights, tutorials, and releases in this week edition of Hotwire Weekly!

Hotwire Weekly Logo

Welcome to Hotwire Weekly!

Welcome to another, slightly shorter, issue of Hotwire Weekly! Happy reading! 🚀✨


📚 Articles, Tutorials, and Videos

Smarter Use of Stimulus' Action Parameters - Rails Designer shows how to reduce repetitive controller code by using action parameters in Stimulus. Instead of writing separate methods like updateTheme or setFontSize, a single updateSetting method can handle multiple updates based on a key-param.

Hotwire components that refresh themselves - Matt Swanson, with guest Jesper Christiansen, introduces a clean pattern for self-refreshing UI using ViewComponent + Turbo Streams on the Boring Rails blog. Instead of scattering identifiers and partials across the codebase, the component encapsulates its own id, broadcast channel, and broadcast_refresh! logic.

Multi Select with Hotwire Combobox - Hans Schnedlitz has built a multi-select input using Hotwire Combobox while contributing to RubyEvents.org, where he needed to assign multiple speakers to a conference session. The solution supports search-as-you-type, chip-style selection, and even free-text entries.

Drifting Ruby: Dependent Select - David Kimura published a new video on Drifting Ruby and demonstrates how to build dependent select fields in Rails using Tom Select for enhanced searchability and styling, combined with Stimulus for dynamic behavior.

RailsConf 2025 slides: Svyatoslav Kryukov and Marco Roth published their Hotwire-related slides from their RailsConf talks:

  • Rails Frontend Evolution: It Was a Setup All Along
  • The Modern View Layer Rails Deserves: A Vision For 2025 And Beyond

🧰 Libraries and Tools

Herb Linter - Linter for HTML+ERB files.

Herb Formatter - HTML+ERB auto-formatter.

🎉 Releases

herb v0.4.0 - Powerful and seamless HTML-aware ERB parsing and tooling.

view_component_reflex v3.3.12 - v3.3.15 - Allow Stimulus Reflexes in a view component.

hot-glue v0.6.21.1 - Plug & play Rails scaffold building companion for Turbo.


Feel free to follow us on Twitter/X, Bluesky, Linkedin, or on Mastodon!

See you next week!

Don't miss what's next. Subscribe to Hotwire Weekly:
Website Bluesky X LinkedIn
Powered by Buttondown, the easiest way to start and grow your newsletter.