Repository navigation
Install the turbo_form gem from the turbo:form generator - #214
Merged
Merged
Conversation
6 of 7 tasks
Dynamic forms now go through the turbo_form gem instead of the hand-wired turbo-form Stimulus controller. The generator adds the gem and runs its installer, replacing the controller, its @rails/request.js dependency, and the expect_turbo_form_request spec helper. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
OutlawAndy
force-pushed
the
turbo-form-gem
branch
from
October 12, 2026 20:07
8285651 to
b8bd5c3
Compare
wesrich
approved these changes
Oct 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why?
rolemodel:turbo:forminstalled a hand-wiredturbo-formStimulus controller. The turbo_form gem supersedes that pattern: a form becomes dynamic withdynamic: trueanddynamic_trigger:, with no controller, route, or action to write.What Changed
turbo:formnow runsbundle add turbo_formand the gem'sturbo_form:installgenerator. The installer adds@rolemodel/turbo-formwith the app's package manager and imports it intoapp/javascript/application.js.turbo-formStimulus controller, its@rails/request.jsdependency, and theexpect_turbo_form_requestspec helper. The gem providesexpect_dynamic_form_requestin system tests with nothing to include.turbo_formjoins the root Gemfile's test-app gems so the installer can boot in the generator specs.Apps that already ran the old generator keep their controller. This PR doesn't migrate them.
Pre-merge checklist
turbo/formandturbo/all)Notes
Carved out of #208, which is now stacked on this PR and keeps the agent-skill installation. The turbo generator specs pass on this branch (17 examples).
Please don't commit version changes within your PR. Versioning, releasing, and changelog entries are managed through the Release workflow.
🤖 Generated with Claude Code