turbo-fetch

Installation
SKILL.md

Turbo Fetch Skill

This skill documents the turbo fetch pattern for dynamically updating form fields based on user input using Turbo Streams and Stimulus.

When to Use

Use turbo fetch when you need to:

  • Update form options based on another field's selection
  • Show/hide conditional fields dynamically
  • Refresh parts of a form without reloading the entire page
  • Implement cascading dropdowns or dependent fields

Pattern Overview

The turbo fetch pattern consists of four components:

  1. Routes - A routing concern that adds the turbo_fetch endpoint
  2. Controller Action - A backend action that prepares data and renders turbo streams
  3. Stimulus Controller - Frontend controller that triggers PATCH requests
Related skills

More from rolemodel/rolemodel-skills

Installs
28
GitHub Stars
5
First Seen
Feb 19, 2026