I don’t suppose some enterprising soul with much more skill than me has
whipped up a “validates_dateness_of” (Complete with leap year
calculations) method for use with all the other validation methods and
wishes to spread much much joy?
Cheers
Jeff “I can barely code RoR and rely on others to do the hard work”
Jones
At the moment it does date and time separately. That’s simply because
I haven’t needed to validate a datetime input on a form yet. Feel free
to write patch if you like!
-Jonny.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.