David Kimura PRO
Joined 7/18/2015
Drifting Ruby Owner
Ruby Rogues Panelist
David Kimura PRO said about 2 years ago on Custom Turbo Stream Actions :
You shouldn't have to run the precompile to get it working. Are you using esbuild or importmap for your application?

David Kimura PRO said almost 2 years ago on Gathering Questionnaire Responses :
I haven't come across that error, but if I had to guess, it could be something to do with this line

event.target.closest(".nested-fields")    

And it not being found. Do you have any more info as to where the error is located?

David Kimura PRO said almost 2 years ago on Gathering Questionnaire Responses :
In these kinds of situations, I'd inspect the HTML elements to see what's getting rendered as it could be a bit different when using SImpleForm.

I would also hop into the browser console to try and target the element to see if I can retrieve it.

document.querySelector("input[name*='_destroy']")

David Kimura PRO said almost 2 years ago :
  charlesabety  ill send you an email to help you resolve this.

David Kimura PRO said almost 2 years ago on Hotwire Modals :
Yes, if there are already existing actions, this would be a safer bet as to not unknowingly break existing functionality.