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


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