Web Development

React + Rails: File Uploads using Dropzone, Paperclip, and Rails 5

I’ve spent a lot of time building React components, but I haven’t had the pleasure of handling uploads. After struggling to find an elegant solution, I think this one does the trick just fine. We don’t have to modify how Rails handles things on the receiving end, which will make this easy for you if […]

Read more

Ruby on Rails 5.1+ & React: Working Example

Following the Ruby on Rails & React: The Easy Way tutorial, I’ve put a bit of that in practice to get a minimal working demo of a basic Rails application firing up while running the React-Rails and Webpacker gems. I’ll also show you how the default configuration magically works out in your favour so you […]

Read more

Ruby on Rails 5.1+ & React: The Easy Way

This is a hard one to get right, and there are so many ways of doing it. In this tutorial, I’ll be getting React running with Webpack and the Babel loader on a Rails 5.1+ application. The React-Rails gem is excellent to get some basic React action going on in your rails application, however, it’s […]

Read more

Testing Subdomain-Based Applications on Localhost

A project I’m working on ran into a snag when I remembered I couldn’t point CNAME records to just any ol’ URL to an external site. Within my app, I needed to rely on routing via subdomain. The solution to working with these subdomains was actually pretty simple. For example, photos.qneville.com is actually hosted elsewhere […]

Read more