Kamal Tip - Private Network only Database Server

Edit: In the original version of this post I made a mistake. This post has been corrected. See the details at the below for an explanation of the mistake and the solution. Mistake Summary & Solution In the original version of this post I had stated that the App servers IP in the Kamal configuration should be set to it’s public IP. This is incorrect. With the SSH proxy pointing at the public IP as well, this resulted in a jumphost connection problem, meaning it tried to connect to the public IP through a proxy of the public IP....

Quick Tip: Git - Rebasing Branches

A quick tip when dealing with branches off branches.

October 11, 2024 2 min

State Design Pattern

State Design Pattern is often overlooked in favor State Machines when it comes to Rails and object state management. However, the State Design Pattern is a highly effective open/closed solution to many state design woes.

Double Polymorphic Associations in Rails

A quick overview of using associations to define good domain descriptions as well as good behavior.

Thoughts on Interfaces for Models

After making small changes to a model, it got me thinking hard about how I build interfaces.