Date_select


#1

Can you see an obvious reason why this date_select code is failing?

The parameters from the form -

Parameters: {“commit”=>“Save All Changes”, “campaign_id”=>“1”,
“campaign”=>{“name”=>“fdsfas”, “end_date(3i)”=>“26”,
“start_date(1i)”=>“2006”, “start_date(2i)”=>“1”, “start_date(3i)”=>“26”,
“end_date(1i)”=>“2006”, “end_date(2i)”=>“1”}}

The Controller -
campaign.update_attributes(params[:campaign])

generates this -

test_campaign_edit(CampaignControllerTest):
ActiveRecord::MultiparameterAssignmentErrors: 2 error(s) on
ariessignment of
multiparameter attributes
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:1697:in
execute_callstack_for_multiparameter_\attributes' /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:1677:inassign_multiparameter_attributes’
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:1339:in
attributes=' /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:1266:inupdate_attributes’

/home/mattc/minglead/config/…/app/controllers/campaign_controller.rb:12:in
`campaign_edit’

I’ve tried both end and start time as timestamps, and even varchars, but
no
joy.

thanks,
matt