I'm getting MultiparameterAssignmentErrors (on Mac OS X) when I submit a form using datetime_select and select any year greater than 2038. I've been trying to find solutions for this across the web, but it looks like it's a different bug than those that have been reported/fixed in the past.
ActiveRecord::MultiparameterAssignmentErrors in EmailsController#create
1 error(s) on assignment of multiparameter attributes
/Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:2397:in `execute_callstack_for_multiparameter_attributes'
/Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:2377:in `assign_multiparameter_attributes'
/Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:2120:in `attributes='
/Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/base.rb:1926:in `initialize'
app/models/email.rb:27:in `initialize'
app/controllers/emails_controller.rb:32:in `new'
{"authenticity_token"=>"a98ad2af6ff97bee4385f222f90f04071aed7b75",
"save_or_draft"=>"Send Email",
"email"=>{"send_at(4i)"=>"10",
"send_at(5i)"=>"39",
"body"=>"",
"timezone"=>"America/Los_Angeles",
"subject"=>"",
"send_at(1i)"=>"2039",
"send_at(2i)"=>"4",
"send_at(3i)"=>"26"}}
create_table :emails do |t|
t.integer :user_id
t.boolean :sent, :sending_in_progress, :draft, :error, :default => false
t.string :bcc, :subject, :preview, :timezone, :error_message
t.text :body
t.datetime :send_at
t.timestamps
end
<%= f.datetime_select :send_at, :order => [:month,:day, :year], :start_year => Time.now.year, :end_year => Time.now.year + 100, :default => Time.now %>