Understanding config/database.yml in Ruby on Rails

Understanding config/database.yml in Ruby on Rails June 11, 2025 The config/database.yml file is a core part of any Ruby on Rails application. It defines how Rails connects to the database in various environments (development, test, production), and it's often the first touchpoint when configuring an application's data layer. Let's explore how this configuration file works, … Continue reading Understanding config/database.yml in Ruby on Rails

πŸ” Securing Your Ruby Apps with bundler-audit

June 10, 2025 In today’s world of frequent security breaches, keeping your Ruby application’s dependencies secure is non-negotiable. That’s where bundler-audit steps inβ€”a powerful command-line tool that scans your Gemfile.lock for known vulnerabilities and insecure gem sources. πŸ›  What is bundler-audit? bundler-audit checks your project for: Vulnerable versions of gems (by comparing with the ruby-advisory-db) … Continue reading πŸ” Securing Your Ruby Apps with bundler-audit

Simulating External APIs in RSpec: A Clean Approach Using WebMock

June 6, 2025 Abstract When testing systems that depend on external services, such as geolocation APIs, simulating HTTP responses becomes essential for building deterministic and isolated test suites. This article explores a disciplined approach to mocking HTTP calls in RSpec using WebMockβ€”without relying on custom helpers or implicit abstractions. Instead, we emphasize clean code principles: … Continue reading Simulating External APIs in RSpec: A Clean Approach Using WebMock

🧼 Skinny Controllers, Fat Models – A Classic Ruby on Rails Guideline

June 5, 2025 In the world of Ruby on Rails, few principles have stood the test of time like the mantra: β€œSkinny Controllers, Fat Models.” While it may sound quirky, this simple phrase encapsulates a deep architectural philosophy that encourages maintainability, clarity, and clean code β€” the Rails way. βœ… What It Really Means The … Continue reading 🧼 Skinny Controllers, Fat Models – A Classic Ruby on Rails Guideline

Automating Document Generation with AI in Ruby on Rails

June 3, 2025 In modern software projects, automating routine tasks is crucial to speed up delivery and reduce human error. One great example is document generationβ€”whether it's product requirement documents (PRDs), proposals, or presentations. Recently, I worked on a system that uses AI to generate structured content from conversations, then outputs documents in multiple formats … Continue reading Automating Document Generation with AI in Ruby on Rails

Building a Microservice Architecture with Ruby: A Practical Guide

June 2, 2025 Introduction Modern applications increasingly adopt a microservice architecture to address scalability and maintainability concerns. This approach breaks down a system into independent, self-contained services, each responsible for a specific domain. Ruby, renowned for its developer-friendly syntax and productivity, provides an excellent foundation for developing microservices, particularly when leveraging the Ruby on Rails … Continue reading Building a Microservice Architecture with Ruby: A Practical Guide

How to Use APIs in Ruby: A Step-by-Step Guide with Faraday, HTTParty, and Net::HTTP

May 26, 2025 If you're a Rubyist like me, you know that making an API call can go from a quick one-liner to a full-blown production-ready beast β€” and everything in between! Let’s take a journey through the best-to-least optimal approaches for making API calls in Ruby, with a dash of humor to keep us … Continue reading How to Use APIs in Ruby: A Step-by-Step Guide with Faraday, HTTParty, and Net::HTTP

πŸ” Debugging in Ruby: irb, pry, byebug, and debug β€” What You Should Know

May 21, 2025 If you've ever felt stuck trying to figure out why your Ruby code isn't behaving as expected, you're not alone. The good news? Ruby has several powerful tools to help you debug like a pro. Here are 4 tools every Ruby developer should know β€” whether you're a beginner or a seasoned … Continue reading πŸ” Debugging in Ruby: irb, pry, byebug, and debug β€” What You Should Know

πŸ” Building Token-Based Authentication in a Rails API with JWT

May 19, 2025 A Practical and Maintainable Approach to Securing Your Endpoints by GimΓ©nez Silva GermΓ‘n Alberto Modern APIs require stateless, secure, and scalable authentication mechanisms. For many Rails developers, JWT (JSON Web Tokens) offer the ideal solution: they’re lightweight, portable, and perfectly suited to APIs where session-based auth doesn’t scale. In this article, I’ll … Continue reading πŸ” Building Token-Based Authentication in a Rails API with JWT

Mastering CI Across GitHub, GitLab, Jenkins & CircleCI β€” Without Losing Your Sanity

May 15, 2025 CI isn’t just a nice-to-haveβ€”it’s your early warning system against code chaos. Think of it as the oracular gatekeeper of your project: it may come with some setup costs, but those are nothing compared to the cost of bugs slipping through unnoticed. With the right CI strategy, we don’t just prevent our … Continue reading Mastering CI Across GitHub, GitLab, Jenkins & CircleCI β€” Without Losing Your Sanity