[Rails] date validation

Nathan Wright nathan at rmh-d.com
Wed Mar 2 19:11:46 GMT 2005


I'm hoping someone can help me (a Rails newbie) with this. Basically, I  
need to verify that a date created with "date_select" is valid *before*  
it's sent off to the database for acceptance (as a valid date) or  
rejection (as an invalid date). Given how easy the majority of validation  
are in Rails, I've got to believe there's a fairly simple way to do this,  
but for the life of me I can't find it.

At this point, I'm even ready to accept a difficult solution, as long as  
it's a solution. Any ideas would be greatly appreciated.

-- 
Nathan Wright
Rocky Mountain Harley-Davidson


More information about the Rails mailing list