Michael Pavling wrote: > On 24 February 2010 10:07, Pale Horse <[email protected]> wrote: >> Frederick Cheung wrote: >>> >>> by the time rails validates the record it has already turned it into a >>> date. > >> Thanks for your swift response. What exactly does this mean for my >> validation, though? > > validates_presence_of would probably suffice. If the user entered an > non-parseable value, the closing_date field will be nil. > > try it and see :-)
I just fail to see why my method wouldn't work, but I will try - thank you. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

