Oracle date column with date_select helper

…help…using oracle 9i

Birthdate: <%= date_select :spec, :birthdate, :start_year => Spec::START_YEAR, :end_year => Time.now.year, :discard_hours => true, :discard_minutes => true, :discard_seconds => true, :order => [:year, :month, :day] %>
and when run.... i get this.... ActiveRecord::MultiparameterAssignmentErrors in SpecController#edit

1 error(s) on assignment of multiparameter attributes

RAILS_ROOT: ./script/…/config/…
Application Trace | Framework Trace | Full Trace

C:/ruby186/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:2094:in
execute_callstack_for_multiparameter_attributes' C:/ruby186/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:2074:inassign_multiparameter_attributes’
C:/ruby186/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1675:in
attributes=' C:/ruby186/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1591:inupdate_attributes’
C:/ruby186/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/associations/association_proxy.rb:123:in
send' C:/ruby186/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/associations/association_proxy.rb:123:inmethod_missing’
#{RAILS_ROOT}/app/controllers/spec_controller.rb:17:in `edit’
Parameters: {“commit”=>“Update”, “spec”=>{“city”=>“warlock”,
“occupation”=>“witch”, “zip_code”=>“44114”, “birthdate(1i)”=>“1954”,
“gender”=>“Male”, “birthdate(2i)”=>“8”, “birthdate(3i)”=>“13”,
“first_name”=>“exampl”, “last_name”=>“example”, “state”=>“ohio”}}

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs