Skip to main content

Hotwire for Ruby on Railss

Hotwire is the Rails approach to interactive pages by sending HTML instead of JSON. Turbo speeds navigation, updates parts of a page with Turbo Frames and streams changes with Turbo Streams, while Stimulus adds small JavaScript controllers attached to HTML through data attributes. It keeps most logic on the server.

Stage: Modern Frontend · Part of the Ruby on Rails roadmap · Last reviewed 19 November 2026

What to learn in Hotwire

Hotwire interview questions

What is the difference between Turbo Frames and Turbo Streams?

A Turbo Frame scopes navigation to one part of the page, replacing only the matching frame with the response. A Turbo Stream sends explicit actions, such as append, remove or replace, targeting elements by id, and can be delivered over WebSockets for live updates.

What role does Stimulus play in a Hotwire app?

Stimulus adds behaviour to server-rendered HTML with small controllers. You set data-controller and data-action attributes, and the controller handles events and targets. It suits things like toggles and clipboard buttons without a full front-end framework.

Where Hotwire fits in the Ruby on Rails roadmap

Hotwire belongs to the Modern Frontend stage (intermediate level), which takes about 18 hours. Hotwire.

Back to the full Ruby on Rails roadmap