Tutorials





Using bind parameters in Active Record for SQL security and performance
Bind parameters are a way to pass values into the SQL statement without embedding the values into the SQL as literals. The values are provided to the SQL statement through parametrization or using a separate API call.There are two benefits of usin...

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...