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.
I’m Scott, a software designer and entrepreneur based in New Jersey. I’m the co-founder KickoffLabs and the creator of several smaller projects. On this site, you will learn about what I am up to and what I find interesting and useful.
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.