David Kimura PRO
Joined 7/18/2015
Drifting Ruby Owner
David Kimura PRO said over 8 years ago on ActiveRecord Migrations :

The terminal command I used was

tail -f log/development.log

I recently wrote a blog post about Tail and Grep. https://blog.driftingruby.com/a-tail-of-debugging-issues/


David Kimura PRO said over 8 years ago on Single Table Inheritance :

Absolutely. However, I was illustrating the point of how the different classes would act. However, since the Emergency and Friend inherit from Contact, any common duplication would best live in Contact.


David Kimura PRO said over 8 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 8 years ago on Basic Testing Introduction in Rails :

Thank you! It has been a long time coming.


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

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