Tutorials
Installing the sassc Ruby gem on a Mac. A debugging story
I’m not exactly sure about the timeline, but at some point, gem install sassc stopped working for me on my Mac (ARM). Initially, I thought this was because that gem was no longer maintained, and the last release was in 2020, but I was wrong. It’s ...
Ruby Debugging Tips and Recommendations in 2025 | Rails at Scale
Debugging is a crucial skill for any Ruby developer. And as the tools and techniques evolve, it’s important to keep up-to-date with the latest best practices.
So here are some of my Ruby debugging tips and recommendations that I’d offer to Ruby d...
Preserving Flash Messages in Rails - Kevin Murphy
We’re offering our best deals on select products for a limited time. We’re going to link to this flash sale from many different pages on our site. The call-to-action (CTA) we display at the top of the flash sale page will change based on which pag...
Finding the opposite of what you have with rails invert_where
Rails 7 introduced invert_where. This method inverts all scope conditions that it’s applied to, simplifying the process of defining the opposite of a where clause in ActiveRecord queries. It also comes with a few caveats that should be considered ...
Rails 8 Assets - Deep dive into Propshaft | Radan Skorić's website
Read the previous article to learn how Propshaft and importmap-rails work together to form the Rails 8 Asset pipeline. That article focuses on the interplay between the two and explains more of the importmap-rails side. Now, let’s dive into how Pr...
Deploying Rails application with Kamal and Postgres - Complete Guide. | Kamal Wiki
Switching to PostgreSQL for your Rails app? Learn how to configure Kamal for seamless deployment with Postgres. This guide includes database setup, environment variables, and troubleshooting tips. Deploy like a pro - read now!.
Speed up RSpec tests: understand lifecycle and execution - Remi Mercier
One of RSpec’s strengths is the legibility of its behavior-based DSL. The other side of this coin is that the proliferation of small example blocks introduces a performance overhead. Why? Because of RSpec test files’ lifecycle! I’ll describe broad...