Form Dates and MultiparameterAssignmentErrors

Roger Robbins
Tue, 31 May 2005 18:16:32 -0000

I''m using the date_select form helper for a date_of_birth field on an
ActiveRecord object.  When I try to save a date earlier than 1 Jan 1970,
ActionController punts with
ActiveRecord::MultiparameterAssignmentErrors.  The message it gives is
"1 error(s) on assignment of multiparameter attributes".  I was able
to
catch the exception and look at it, and it is certainly complaining
about saving the date_of_birth field.

The controller line throwing the exception is:
	redirect_to :action => "longform" if
@borrower.update_attributes(@params[''borrower''])

The view line for the date select is:
	<%= date_select ''borrower'',
''date_of_birth'', :start_year => 1900
%>

Saving dates later than 1 Jan 1970 works fine (but then not everybody
was born after 1970...).  The development log does not show a line for
the update query on requests that throw the exception.  I''m using the
SQLServer (yes, MS SQL) adapter - but that *shouldn''t* be the
problem...
Can anybody shed some light on this for me?

Thanks in advance,

Roger Robbins