dynamic-nested-attributes
OfficialDynamically manage nested Rails forms.
AuthorRoleModel
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps Rails developers implement dynamic nested forms that manage has_many associations within a single view, reducing boilerplate and errors when creating or editing related records.
Core Features & Use Cases
- Dynamic nested form fields for has_many associations with add/remove controls.
- Turbo Streams-based updates to append or remove nested items without page reloads.
- Clear guidance for model, form object, views, controller actions, and strong parameters to support bulk operations.
Quick Start
Set up a Rails project, add the turbo-rails and simple_form gems, define a parent model with accepts_nested_attributes_for for the child association, create partials for item fields and a Turbo Stream template that inserts new nested fields, and wire a Stimulus controller to handle client-side removal.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: dynamic-nested-attributes Download link: https://github.com/RoleModel/rolemodel-skills/archive/main.zip#dynamic-nested-attributes Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.