ScottWrites
  • About
  • Now
  • Shorts
Jese Leos

Scott Watermasysk

January 03, 2023

How to validate the presence of a boolean field in a Rails model

There is a subtle bug that happens when validating the presence of boolean fields in Rails. Ensuring adequate test coverage helps us find those issues before they hit production.

© 2025 All rights reserved
  • Check out @scottw.com on bsky
  • Check out scottwater on github
  • Check out scott-watermasysk on linked_in
Powered by PhrontPage