Topic: MultiparameterAssignmentErrors

Hello, Folks;

I am trying to get some information saved to my application database but Rails 3.x complains I have "1 error(s) on assignment of multiparameter attributes". It seems obvious to me the problem is that I broke my DateTime field into 3 separate entities which are being sent as follows:

{
 "utf8"=>"✓",
 "_method"=>"put",
 "authenticity_token"=>"3MCvRckv/H16a+fRjlwRfDCpSk9EkwAtJgLa0bEI4bk=", 
 "apptdate"=>"2012-07-18",
 "apptdate(4i)"=>"14",
 "apptdate(5i)"=>"30",
 "commit"=>"Save"
}

This is a excerpt of the view/partial in use:

<td style='width:75%;'>
  <%= text_field(:appointment, :apptdate, :style => 'width: 93px', :class => 'dbdate fmdate') %>
  <%= time_select(:appointment, :apptdate, {:minute_step => 10, :ignore_date => true}, :style => 'width:50px') %>
</td>

I am actually using a jQuery DatePicker on the form (linked to the class options dbdate and fmdate) and the text_field displays the selected date alongside with the fields for time. Image here: http://yfrog.com/9eg7z9j.

Does anyone know how can I 'break' the usual Rails datetime_select as needed without breaking Rails original way of handling the datetime pieces (i.e. apptdate(1i), apptdate(2i), apptdate(3i), apptdate(4i), apptdate(5i))?

Thanks in advance.

Last edited by wwwwolf (2012-07-18 02:00:45)