Blog Posts

Thoughts and walk throughs on programming related topics

Controller Tests with RSpec and Rails 8 Authentication

How to authenticate a User in Controller tests when using RSpec and Rails 8 authentication.

2025-07-02
ruby-on-railsauthenticationrspectests

GitHub CoPilot Instructions Can Catch Ruby On Rails N+1 Queries

A new feature for GitHub CoPilot, called Instructions, can be used to catch N+1 queries in Ruby on Rails applications. It can even leave comments on Pull Requests when it finds them!

2025-05-17
ruby-on-railsgithubcopilotactive-recordn+1

Preloading Nested Active Record Associations Syntax

Exploring a lesser known syntax for preloading nested Active Record associations.

2025-04-21
ruby-on-railspreloadingactive-record

Using PostgreSQL Functions with Rocicorp's Zero and Ruby on Rails

Zero updates our database directly from the UI and we can't rely on callbacks like 'before_save' when using it. Let's explore different ways to manage data requirements.

2025-02-07
ruby-on-railszeropostgresql functionsfx

Setting up Rocicorp's Zero with Ruby on Rails

Rocicorp's Zero is a sync engine to power extremely fast UI applications. I decided to pair it with Ruby on Rails and wanted to share how I got everything working.

2025-02-04
ruby-on-railszeropostgresqlauthenticationjwt

Adding Google OAuth in Rails 8

Rails 8 added an authentication generator, but what if we want to use Google OAuth? I decided to implement it using the oauth2 gem and share what I learned.

2024-12-02
ruby-on-railsauthenticationoauthgoogle

Adding Email Address Verification in Rails 8

Rails 8 added an authentication generator, but it stopped short of creating User records and verifying their email address. I decided to build it and share what I learned.

2024-11-21
ruby-on-railsauthenticationverification

Cache Bundle Install with BuildKit

How to use Buildkit's mount cache to reduce bundle install times during Docker builds.

2023-05-03release.com
dockerbuildkitrailsruby

GitHub Action to upload SimpleCov Coverage Results

I've been playing around with Actions ever since and one of my new projects, a Ruby Gem, didn't have any form of CI as of this morning. I set out to create an Action that would run the tests for the gem and produce coverage results via SimpleCov.

2019-10-16
githubactionsrubygemrspecsimplecov

Update - Ruby Gem Dockerfile with Alpine Linux

I realized that we are always using Ruby Alpine images, and not the base Ruby image. I wanted to standardize the Dockerfiles I had written at work and here for the blog so I decided to look into what it would take to do so.

2018-09-19
ruby-gemsruby-on-railspostgresqldatabasedockeralpine-linux

Adding a Test Environment to the Active Record Rake Tasks Gem

Set up a testing environment that can be run locally and in a repeatable fashion for continuous integration

2018-03-12
ruby-gemsruby-on-railspostgresqldatabasedockertestingrspec

Adding Rails G Migration To a Gem - Following Code To Re-Implement Functionality

The process I went through to figure out what was needed; I believe it is good exercise in understanding how to follow code to and understanding what it takes to re-implement functionality.

2018-02-25
ruby-gemsruby-on-railspostgresqldatabaseactive-recordrake

Adding ActiveRecord Rake Tasks to a Gem

Instead of having to create a Rails application and install the gem to connect to the database to test your models, we can create local database for only the gem by adding ActiveRecord's Rake tasks.

2018-02-22
ruby-gemsruby-on-railspostgresqldatabaseactive-recordrake

Connect To Another Rails Application's Database Through A Gem

I was recently thinking about system design, specifically the monolithic vs microservices approaches and how applications can talk to each other.

2018-02-18
ruby-gemsruby-on-railspostgresqldatabase