Try my validates_date_time plugin:
http://svn.viney.net.nz/things/rails/plugins/validates_date_time
-Jonathan.
On 7/31/06, jon <jon@impulsenet.com> wrote:> hi,
>
> Below is an example of a text field I have, which works fine, until you
> enter an invalid date such as Feb 31st, which doesn''t exist
>
> Is there a way of checking this easily and returning an error message
> like validates_presence_of does ?
>
> <p><label for="project_client_deadline_date">Client
Deadline
> Date:</label><br/>
> <%= date_select ''project'',
''client_deadline_date'',:order =>
> [:day,:month,:year] %></p>
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>