ruby on rails validation woes
ActiveRecord is the basic O/R mapping feature of the Ruby on Rails web application framework. If you didn’t know that already, feel free to skip the rest of this entry.
Some people would think that any time you call “valid?” on an ActiveRecord object, Rails would call before_validation before it actually runs the validations. I’m one of those people! And so are my colleagues.
It turns out we’re all wrong, though.
The shameful thing is, it took us about 2 hours to figure that out.