Ruby on Rails Forms: Nested Attributes // Multiple Nested Models with StimulusJS

preview_player
Показать описание
Use one form to create multiple nested models and dynamically add/remove children using Ruby on Rails nested attributes and a reusable StimulusJS solution.

0:00 - Problem Overview
0:23 - Basic CRUD Overview (Projects, Sprints and Tasks)
0:45 - Project Model + Sprint - accepts_nested_attributes_for
1:10 - Creating a sprint using the Project form
2:10 - Edit/Update actions for nested attributes
2:25 - Removing a nested model
2:47 - Adding sprints using Stimulus JS
3:39 - Implementing nested Tasks in Sprints
04:05 - Subtasks challenge

-------

## Do We Have to use a Sequential Number for the New Nested Item?

## The case for recursive nested form
I have a few points about that here:

#ruby #rails #stimulusjs
Рекомендации по теме
Комментарии
Автор

This is a quality tutorial, I really liked the format and the length. Great job! Keep it up and keep creating videos.

RealChristopherRobin
Автор

whats up with the trailing ` } ` at 2:31 ?

bunyn