turbo-fetch

Automate dynamic form updates in Rails with Turbo Streams and Stimulus.

6|1|Updated Feb 4, 2026
One-click install
npx skills add https://github.com/RoleModel/rolemodel-skills --skill turbo-fetch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: turbo-fetch
Source: https://github.com/RoleModel/rolemodel-skills/tree/main/skills/turbo-fetch
Command: npx skills add https://github.com/RoleModel/rolemodel-skills --skill turbo-fetch

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables dynamic, client-responsive forms by updating fields and options in real time without full page reloads, improving user experience and reducing errors in complex forms.

Core Features & Use Cases

  • Dependent fields: update options or visibility based on other selections.
  • Conditional sections: show or hide form sections via turbo streams.
  • Seamless updates: refresh parts of a form to reflect the current state without reloads.

Quick Start

Set up a Rails project with Turbo and Stimulus, then create a turbo_fetch flow that patches the form when a user changes a field and updates the relevant target field via a turbo_stream response.

Frequently Asked Questions about turbo-fetch

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I update Rails form fields dynamically without a full page reload?

You can update Rails form fields dynamically by using Turbo Streams and Stimulus. This approach patches specific form elements in real time based on user selections, refreshing dependent fields or conditional sections without reloading the entire page.

What is the best way to handle cascading dropdowns in a Rails application?

Handling cascading dropdowns in Rails is best achieved with Turbo Streams. When a user changes a parent selection, a turbo_stream response updates the child dropdown options instantly, ensuring the form reflects the current state without a full reload.

Can I show or hide conditional form sections using Turbo Streams?

Yes, you can show or hide conditional form sections using Turbo Streams. By setting up a turbo_fetch flow with Stimulus, the server sends targeted turbo_stream responses that dynamically toggle the visibility of specific form sections based on user input.

Does this dynamic form update approach require both Turbo and Stimulus?

Yes, this dynamic form update approach requires both Turbo and Stimulus. You need a Rails project configured with Turbo for broadcasting stream updates and Stimulus to handle the client-side field change events that trigger the server responses.

Why use Turbo Streams for dependent form fields instead of traditional JavaScript?

Using Turbo Streams for dependent form fields eliminates the need to write custom JavaScript for DOM manipulation. It leverages server-rendered HTML fragments to seamlessly update options and visibility, reducing errors and improving user experience in complex forms.