David Kimura PRO
Joined 7/18/2015
Drifting Ruby Owner
David Kimura PRO said almost 6 years ago on common code separation with stimulus :
Do you have any examples of a particular use case that you're thinking of?

David Kimura PRO said almost 6 years ago on Payment Gateway Basics with Stripe :
  can you provide more context? It sounds like you're passing the name parameter into a Stripe call and it doesn't recognize that parameter. Is this when trying to create a Plan? If so, look at the show notes for an update to this as their API has changed.

David Kimura PRO said almost 6 years ago on Deeper Dive into StimulusJS :
  One thing that has changed from the earlier videos is that now I use rails webpacker:install:stimulus to install stimulus. I think that #189 or #207 are great starting guides. I think that it's one of those things where it will take practice to get use to it. I often refer back to the handbook which has lots of great information. https://stimulusjs.org/handbook/introduction


David Kimura PRO said almost 6 years ago on Polling with StimulusJS :
  It has to do with webpacker having the RailsUJS installed. So we import it into our stimilus controller at the top. Otherwise the Rails command within the stimulus controller would not be defined. If you had it defined in the window or extended in Webpacker, then you might not have to import it, but I don't like doing that much as it creates too much cross dependencies (changing a file in one location would affect the functionality of another location).

David Kimura PRO said almost 6 years ago on Polling with StimulusJS :
That's fine as it would be used for nonstimulus scripts. i mean more of having something like this

window.Rails = require("rails-ujs")