Rails Nested Forms with Turbo Streams
A common UX pattern is to have a form with the ability to add and remove nested records. For example, a form for a blog post might have a section for adding tags. The user can add as many tags as they want, and remove tags they no longer want.
For s...
code.avi.nyc3 min read
Teddy Valente
Rails dev since school (a long time ago) and CTO of Wobee
The Stimulus Component for Nested Forms would have work great for this example. But the way you show could be use when some inputs depends on the value of another one, so you can update the form with corresponding inputs.