Skip to content
Simone Silvetti

← All posts

Rails and Hotwire

• 1 min read

Hotwire is the Rails approach to the frontend: instead of building a separate JavaScript application, the server sends HTML.

Turbo

Turbo makes navigation fast by replacing only the page content, without a full reload.

Stimulus

Stimulus adds small behaviours to existing HTML:

<div data-controller="hello">
  <button data-action="click->hello#greet">Greet</button>
</div>
  1. Write the HTML.
  2. Connect a controller.
  3. Add the behaviour.

← All posts