David Kimura PRO
Joined 7/18/2015
Drifting Ruby Owner
Ruby Rogues Panelist
David Kimura PRO said over 6 years ago on WYSIWYG Editor with Summernote :

It could be an issue on the onImageUpload callback in the summernote initialization. Basically, this callback will listen for image uploads and in the example, we're calling a separate javascript function (sendFile). The sendFile function will make an AJAX post to your application at a different endpoint and will handle the uploading to S3. The success callback of this AJAX request should return a hash with the URL of the S3 image. The success callback will create the image element with the URL from the returned hash and that will be what gets inserted.


David Kimura PRO said over 6 years ago on Basic Testing Introduction in Rails :

Thank you! It has been a long time coming.


David Kimura PRO said over 6 years ago on Testing with RSpec :

Agreed, will be covering both of those in upcoming episodes.


David Kimura PRO said over 6 years ago on Testing with RSpec :

Hello. I plan on continuing the series with other parts of testing; Capybara, FactoryGirl, Mock, CI, CD, etc.


David Kimura PRO said over 6 years ago on Eager Loading with Goldiloader :

It does work with Rails 5! I've had luck with it, but you will want to make sure that you have pretty good test coverage to make sure stuff doesn't break. Goldiloader is pretty awesome, but it does add a bit too much 'magic'. The proper/better solution is to fix the performance gaps in the code rather than relying on the gem. However, if you do want to give it a shot, I've had luck with v0.0.12 and still getting passing tests. I think there was an issue on v2.0.0. It might have since been resolved.