Forum: Ruby on Rails date_select problem

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
5f09a4449367c136d3273e4794c2df3f?d=identicon&s=25 Dmitry Solonina (dimas)
on 2007-02-22 15:16
Hello to All!

I have a problems with "date_select"
How to validate incorrect values
such as 30.02.2007 or 31.04.2007

A have a next error message:

ActiveRecord::MultiparameterAssignmentErrors in
AppointmentsController#create
1 error(s) on assignment of multiparameter attributes

Request
Parameters: {"commit"=>"Create", "appointment"=>{
"meet_date(1i)"=>"2007", "meet_date(2i)"=>"2", "meet_date(3i)"=>"30",
"employee_id"=>"25", "description"=>"", "duration"=>"0",
"recurring_type"=>"1"}}

Who known about this?
This topic is locked and can not be replied to.