Blog
My websites
Web devs are constantly putting up and pulling down their own sites and Iâm no different. So here is my latest attempt at organization. I plan to make this site my informal blog where Iâll talk freely about anything. leavingharbor.com will just focus primarily on my company and its endeavors.
I felt like polluting...
Restoring a lost scene in Unity
FYI â This mostly applies to folks using Macs.
Well shit. Losing progress on a project is bound to happen to you at some point in your career. Whether the application hangs and you have to restart or the power goes out, youâre bound to experience some bad luck once in a while. Turns out that was me this morning.
...Categories in a Rails App
Categorizing things in a Rails app is a common need, but itâs a non-trivial lift to get it all implemented. Database relationships need to be right. How in the world should you set up your forms? Whatâs going on in my controllers? Iâm going to do my best to show you how I implement categories.
Hereâs our littl...
A gotcha with Active Storage and Cloudflare
Rails 5.2 introduced Active Storage and itâs pretty awesome. Iâd used paperclip from the @thoughtbot folks for a long time, but file uploading is a requirement for just about any site these days so it might as well be part of the core. Now it is.
Well, if you happened to implement Active Storage into your Rails ap...
Deleting Facebook
I deleted Facebook for good a few weeks back. With the #DeleteFacebook hashtag trending and looming figures like Woz deciding to leave I figured Iâd add my two cents.
Leaving Facebook is a two part story.
For years I have been absent from Facebook. I truly mean I didnât get on. I used to only get on around my bir...
Debugging in RubyMine with Rails 5.2
If youâve upgraded to Rails 5.2 and are using RubyMineâs debugger you might notice that breakpoints arenât working as they should. For me, they would only work in views, but controllers and models wouldnât stop anything.
Turns out the problem is the inclusion of the Bootsnap gem in Rails 5.2. Bootsnap is aweso...
Getting rid of Time Machine backup folder
Okay, wow. Have you been pulling your hair out trying to get rid of some old Time Machine backup files that simply wonât delete? Well, if youâve tried a hundred things and ended up here I just might be able to help because I just dealt with the same thing.
Somehow Time Machine had made a backup to my boot drive. N...
Custom validation in Rails
Hereâs a little trick I like to do when Iâm addressing validations in my models. Letâs say you have a standard Post
model. It might look something like the following.
If youâre like me and prone to ideas popping into your head at inopportune times then you probably only have a few seconds to jot down an idea b...
System Tests with RSpec, Rails, Capybara, and Devise
Since the release of RSpec 3.7 weâve been able to take advantage of system tests which are new as of Rails 5.1. If youâve been using RSpec for a while youâre already likely familiar with feature tests using Capybara. For those new to these types of tests: they allow us to test the actual actions of a user. Clicki...
Bootstrap 4 Cheat Sheet
Get your Bootstrap 4 documentation faster!
This got posted on Hacker News the other day. Itâs fantastic. Itâs much quicker and cleaner than Bootstrapâs documentation. Itâs not going to be as verbose, but if youâve been using Bootstrap for a while and you just need the syntax, itâs lightning fast.
Blog Categories
About These Posts

My blog primarily contains writings about my work on computers, but I occasionally mix in fun life stuff. I am, at best, a mediocre writer, but I like doing my part to give back to the community. Feel free to contact me if you have specific something to chat about. See you around!