David Kimura PRO
Joined 7/18/2015
Drifting Ruby Owner
Ruby Rogues Panelist
David Kimura PRO said over 4 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 over 4 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")


David Kimura PRO said over 4 years ago on Uploading Files with Refile :
  I prefer Active Storage right now as it seems to fit my use cases. I haven’t had any issues with it so far.

David Kimura PRO said over 4 years ago on Deploying to Heroku :
  I think that it would mainly be the networking aspect in the security groups so that you’re not opening up the PostgreSQL service to the world and also forming the proper DATABASE_URL. I think that those would be the main two points of difference, but definitely something to keep in mind.

David Kimura PRO said over 4 years ago on Dynamic Role Management :
Yea, I’ve implemented something like this before with that approach