Nicholas Shirley
  • Home

ActiveRecord

A collection of 1 post

Rails

Verify That an ActiveRecord Object has at Least One Attribute

Rails ActiveRecord callbacks make validation a breeze, but what happens if you want to verify that a record has at least one attribute present, but you don't care which attribute it is? This

  • Nicholas Shirley
3 min read
Nicholas Shirley © 2026
Latest Posts Twitter Ghost