Rails

Below you will find pages that utilize the taxonomy term “Rails”
August 8, 2025
Building a Complex and Flexible Table Component in Rails

While building EstateSync, I created many tables of varying complexity and length, but they still shared a lot of common patterns. Maintaining a consistent UI became increasingly challenging as I was using Tailwind, and I noticed that view code was being duplicated. That’s when I decided to explore ViewComponent and Phlex. While Phlex seemed interesting and promising, for my particular use case I preferred the simplicity of combining .erb files with ViewComponents.

August 4, 2025
Local Development with Multiple `.test` Domains and Custom Ports using Nginx + dnsmasq

Introduction

When working on multiple local projects, each running on different ports, it becomes inconvenient to remember port numbers and manually update /etc/hosts for every new project.
Our goal was to make development feel like production — where each project is accessed via its own domain — while keeping the setup flexible, simple, and easy to maintain.

August 1, 2025
10 Essential Gems for Security and Code Quality in Rails Projects”

Every production-grade Rails project should proactively address security and code quality. The Ruby ecosystem offers a rich collection of gems that help you do just that - catching bugs early, enforcing best practices, and protecting your users and data.

July 9, 2024
Enhancing performance in rails with ActiveRecord methods

When developing applications using Rails, efficient database interaction is crucial for maintaining high performance. ActiveRecord provides several methods to optimize database queries. In this post, we’ll explore how using specific ActiveRecord methods can significantly improve the performance of your Rails applications.