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
Tag: 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









