Tutorials

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...


Integrating DeepSeek API with Ruby - DEV Community
Artificial Intelligence is revolutionizing the way we interact with text, and DeepSeek provides a powerful API to harness its capabilities. Whether you’re looking to correct grammar, generate poetry, or build AI-powered applications, this guide wi...

Build a Notion-like editor with Rails, part 2 | Rails Designer
In the first part of Build a Notion-like editor with Rails article, the foundation was built by creating the data model and the basic HTML layout. This article continues where that article ended.
Besides making things look a fair bit prettier wit...

Migrating from Sidekiq to Solid Queue - DONN FELKER
I recently migrated Listomo (my email marketing platform) from Sidekiq to Solid Queue. There are lots of posts out there showcasing how various companies migrated to Solid Queue from Sidekiq but they did not help that much, so hopefully this helps...