Validate things that your application is going to rely on, regardless
if the values are from user input or set programatically. That
usually includes the validating presence_of key data fields and
associations. Stick to the important stuff and don’t waste your time
crafting complicated validations that are just going to frustrate you
and your users.
It’s easy to blow half a day creating a phone number regex validation
that’s a work of art. But that falls apart when a user wants to enter
“123-456-7890 (don’t call after 5 pm)”.
On Feb 1, 12:37 pm, Earle C. [email protected]