In this episode, we look at combining Rails UJS, nested routes, scopes and StimulusJS. A deep dive from the beginning to completion of multiple select boxes changing based on their selections.
Callbacks are great for quickly tapping into the object life cycle. However, after a model or an application grows, it will become harder to maintain over time. It is better to extract the responsibility and separate the logic.