Hello all. I''m using the date_select helper to generate a drop down list for dates. Unfortunately, it shows all possible date combinations, including invalid ones (july 31, etc). Has anyone else delt with this before? At the very least I''d like to validate that the date selected is valid. Can anyone recommend any neat ruby tricks to do so?
Hi Michael, Michael Gorsuch wrote:> Hello all. I''m using the date_select helper to generate a drop down > list for dates. Unfortunately, it shows all possible date > combinations, including invalid ones (july 31, etc). > > Has anyone else delt with this before? At the very least I''d like to > validate that the date selected is valid. Can anyone recommend any > neat ruby tricks to do so?There is a trick for this on 4Days on Rails (rails.homelinux.org), page 27. HTH, Beate