Hello all. 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
on 2006-03-23 16:22
on 2006-03-23 17:02
Think this is what you're looking for: http://svn.viney.net.nz/things/rails/plugins/valid... <http://svn.viney.net.nz/things/rails/plugins/valid... Haven't used it but seems to do that and more Chris T
on 2006-03-23 23:38
ChrisT wrote: > Think this is what you're looking for: > http://svn.viney.net.nz/things/rails/plugins/valid... > <http://svn.viney.net.nz/things/rails/plugins/valid... > > Haven't used it but seems to do that and more > > Chris T Excellent! My lazy self thanks you for the directions. Jeff
on 2006-03-24 14:25
Yeah, validates_date_time will probably do what you're after. I'd be interested in your feedback from using it. Any thoughts? Improvements? Problems? -Jonathan.
on 2006-03-24 16:56
Jonathan V. wrote: > Yeah, validates_date_time will probably do what you're after. I'd be > interested in your feedback from using it. Any thoughts? Improvements? > Problems? Does it validate both Date and Time together? A datetime field in MySQL for example. Thanks! Tom
on 2006-03-25 01:55
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.