dynamic-forms

Installation
SKILL.md

Dynamic Forms

The turbo_form gem is RoleModel's mechanism for dynamic form interaction. Every new dynamic form uses it. Do not write a turbo_fetch route, controller action, .turbo_stream view, or Stimulus controller for a form that turbo_form can drive.

The gem's README is the API documentation. Read it before writing or changing a dynamic form. This skill does not restate it.

Setup

Check the Gemfile for turbo_form. If it is missing, add it and run bin/rails generate turbo_form:install, then draw the :turbo_form route concern on the resource:

resources :materials, concerns: :turbo_form

The engine defines the concern and the controller behavior. Do not define a :turbo_form or :turbo_fetch concern in config/routes.rb.

Shape

Installs
2
GitHub Stars
7
First Seen
Sep 29, 2026