David Kimura PRO
Joined 7/18/2015
Drifting Ruby Owner
Ruby Rogues Panelist
David Kimura PRO said over 3 years ago on Custom solution for returning indexed errors while update with nested_attributes :
I started to look at this and I think I was able to replicate the issue, but haven't seen where it affected anything negatively. I even combined a few situations where doing form field highlighting errors did appropriately flag the correct fields which failed validations.

David Kimura PRO said over 3 years ago on Building a Questionnaire :
It’s addressed in the next episode in dealing with nested attributes within nested attributes 

David Kimura PRO said over 3 years ago on Hotwire :
 β˜’ The controller action is set to 
redirect_to @ticket
We could work around that by preventing a redirect, but I just didn't in the episode.

David Kimura PRO said over 3 years ago on Multiple Resources with Devise :
 β˜’ Yes and that would probably be my default way of handling different kind of actors. I would only reach for multiple devise models if the different actors were so different that it would almost be like a completely different app experience. Pretty much, if there was any kind of overlap between actors, I would try to keep them the same model but use roles to determine the accessible functionality.

David Kimura PRO said over 3 years ago on Organizing Stimulus Controllers :
 β˜’ Thanks! Personally, I still use webpacker as I have personally not experienced a lot of issues with it. It is a bit slow when creating new applications and from time to time do run into some nontrivial issues, but nothing that has forced me into a different direction. With the current version of hotwire-rails, both Turbo and Stimulus will install under app/javascript if you have webpacker installed on the project. 

I haven't tried using the ApplicationController for Stimulus on a non-webpacker app yet, but I'd imagine that it would work similarly.

I will probably continue to use webpacker for me applications until the Rails core advises for a different route. I think going the pure sprockets way will have some growing pains in modern Rails apps until there is a set standard way. It does seem like we are in a pre-transitionary period around this stuff, but this is my speculation and not based on any actual direction that I've seen. (other than hotwire-rails working with or without webpacker)