> validates_format_of :closing_date, :with => /^\d\d\-\d\d\-\d\d\d\d$/, > :message => "is not correct format"
Does this seem correct or is there a better way to do this? Basically, I have a closing_date column in my database which is set as a date field. On the front end form, I've used a text box for the user to enter the date. I've entered the data exactly as the regular expression above dictates but I can't seem to make it pass that instance method :/ Please help. -- 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.

