Tutorials

Rails 6.1 adds support for role switching and sharding in database | Saeloun Blog
Rails 6.1 adds the ability to switch a role or shard for an application with multiple databases. This means it is possible to switch connections for one database instead of all databases globally.To use this feature, we need to set the below confi...

Using client stubs for easy and reliable integration tests | Fabio Perrella’s Blog
A while ago, I used AWS Ruby SDK to create a method to download files from S3, and I was introduced to Aws::ClientStubs, which is amazing, and it opened up my mind on how to test external APIs with a more integrated approach!Before discovering Aws...


Docker Compose: a nice way to set up a dev environment
Hello! Here is another post about computer tools that I’ve appreciated. This one is about Docker Compose!This post is mostly just about how delighted I was that it does what it’s supposed to do and it seems to work and to be pretty straightforward...

The Gnar Blog - Caching All Native Ruby Gem Platforms
Ramblings from The Gnar Company team on all things tech, culture, and process.Some dependencies, like nokogiri, ship with multiple libraries for different architectures. If you cache your gems, you may need to cache multiple platforms, because you...

How I replaced Baremetrics and ChartMogul with Rake - Keygen Blog
In the early days of my business, I was a happy Baremetrics user. I was new to running a Software-as-a-Service (SaaS) business, I only had a handful of Stripe plans, and all I really wanted to know was my monthly recurring revenue (MRR). But fast-...



Handling PDF Files using Docsplit and Ruby on Rails
Docsplit is one of my favorite gems. I used this gem for my first Rails project, I noticed the docs can be improved upon and in this tutorial I wish to introduce to you this wonderful gem whilst trying to make clearer documentation on the PDF hand...