Tutorials

Taming Large Rails Applications with Private ActiveRecord Models
A new ActiveRecord instance has 373 public methods.Scaling a Rails application is difficult, but not for the reasons you might expect. The framework does well at horizontally scaling for many businesses, especially small data businesses. But small...



Upgrading Rails: Spelunking the Rails Code Base to Fix ActionMailer Test Failures
Recently, at work, I’ve had the pleasure of working on upgrading a legacy Ruby on Rails application from 4.2.11.1 to 5.2, and eventually v6.0. The app has been around a long time and has gone through many upgrades since the initial commit 10 year...


How to Create Custom Scaffold Templates in Ruby on Rails – Web-Crunch
Ruby on Rails is such a powerful framework. It has its own CLI of which harnesses what are known as “generators”. These generators can quickly scale up resources for your app with a few keystrokes. In this post learn how to create custom scaffold ...

An easier way execute command line applications and get all of the output.
CommandLine provides an easier way to run command-line applications. It captures all outputs, can handle applications that require stdin, and can pass environment variables. It's also helpful for testing commmand-line applications.This project is ...



Fun with each_with_object and other Enumerator adventures
A short preface: I am writing in Ruby since 2004. For last 5 years I am also participating in language development, documenting new and old features, proposing some (several got accepted) and diving deep into weirdest mysteries of the language. So...