i am wondering how you deal with date validation in your models … if i
have a date attribute it only eats date objects … so i when i do this
u = User.new(:born => Date.today)
it works, but this results in a nil value in :born attribute …
u = User.new(:born => ‘10.10.2007’)
puts(u.born) #results in nil
so now i cannot really validate dates because the string is not stored
in the attribute … whereas all other attributes store everything …
when i excpect a number in an attribute i can assign a string but the
object will stay invalid (if i have a validator)
so whats the best thing to deal with dates in connection with a web
form?