Ruby on Rails Forms: Nested Attributes // Multiple Nested Models with StimulusJS
DoCodeDo
0:00 / 0:00
Ruby on Rails Forms: Nested Attributes // Multiple Nested Models with StimulusJS
1 105 просмотров · 2 г. назад
DoCodeDo
149 подписчиков
1 105 просмотров · 2 г. назад
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
-------
Code here: https://github.com/viniciusoyama/rail...
Full blog post: https://vinioyama.com/blog/rails-nest...
Do We Have to use a Sequential Number for the New Nested Item?
https://vinioyama.com/blog/rails-nest...
The case for recursive nested form
I have a few points about that here:
https://vinioyama.com/blog/rails-nest...
#ruby #rails #stimulusjs