David Kimura PRO
Joined 7/18/2015
Drifting Ruby Owner
David Kimura PRO said over 5 years ago on Hotwire :
Note, if you were using Turbolinks/Rails UJS in your app previously, you should remove them:

  1. Remove the turbolinks gem from your Gemfile.
  2. Run ./bin/bundle install
  3. Run ./bin/yarn remove turbolinks @rails/ujs
  4. Remove these from your application's JavaScript pack:
import Rails from "@rails/ujs"
import Turbolinks from "turbolinks"
Rails.start()
Turbolinks.start()

It sounds like we should also remove ujs from Webpacker. This was found on https://github.com/hotwired/turbo-rails


David Kimura PRO said over 5 years ago on Editors :
  This would probably be a good one to watch. My workflow hasn't changed much since I recorded this one. https://www.driftingruby.com/episodes/from-editor-to-ide


David Kimura PRO said over 5 years ago on Avatars :
  I agree on the response.code. I think that as I was speaking it and typing... It got typed out. 😀

I think that a full solution around this would be to have a background job which gets triggered on create and whenever the email address is updated to do the gravatar_exists? functionality and then update the user to populate a gravatar_url attribute on the user. Then we could check if the user.gravatar_url? and simply return the image_tag with the user.gravatar_url or display the initials.

David Kimura PRO said over 5 years ago on Autocomplete with StimulusJS :
  it appears to be an issue with stimulus 2.0.0 since the library isn't having it as a required dependency and causing a double loading of the Stimulus library. See this page as a workaround. https://github.com/afcapel/stimulus-autocomplete/pull/26


David Kimura PRO said over 5 years ago on Autocomplete with StimulusJS :
Basically, You would need to add this code as if it were one of your own stimulus controllers and give it a proper file name so that it works with your existing code which invokes the controller. You would also need to add lodash.debounce via yarn.

https://github.com/afcapel/stimulus-autocomplete/blob/master/src/autocomplete.mjs