[Rails] date validation

Michael Koziarski koziarski at gmail.com
Wed Mar 2 19:57:46 GMT 2005


On Wed, 02 Mar 2005 12:11:46 -0700, Nathan Wright <nathan at rmh-d.com> wrote:
> 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.

What do you mean 'valid' in this context?  Is it some business rule
validation (user must be over 18) or some formatting problem?
 
> 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
> _______________________________________________
> Rails mailing list
> Rails at lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
> 


-- 
Cheers

Koz


More information about the Rails mailing list