Forum: Ruby on Rails RE: datetime_select causing 1 error(s) on assignment of multiparameter attributes

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Gregg Turnbull (Guest)
on 2009-06-03 11:04
(Received via mailing list)
I have recently updated to rails gem: 2.2.2 and am getting an error
when datetime_select or a plugin using datetime_select
(unobtrusive_datetime_picker -
http://github.com/brianjlandau/unobtrusive_date_pi...)

 The update is using the basic query and update based on parameters
submited
     @tour_request = TourRequest.find(params[:id])

     @tour_request.update_attributes(params[:tour_request])

and no matter if I use in the view I still get the same error:

    <
%=f.unobtrusive_datetime_picker :booked_datetime,:include_blank=>true,
:order=>
[:month,:day,:year,:hour,:minute],:minute_step=>5 %>
               or
    <%=
f.select_datetime :booked_datetime,:minute_step=>5,:include_blank=>true,
:order=>
[:month,:day,:year,:hour,:minute] %>
    </p>

Any insight into what is causing this error or maybe some experience
as there is a ton I've found but nothing with a definitive solution.


full error with the parameters:
--------------------------------------
1 error(s) on assignment of multiparameter attributes

RAILS_ROOT: /Users/gturnbul/Sites/tourbooking/trunk
Application Trace | Framework Trace | Full Trace

/Library/Ruby/Gems/1.8/gems/activerecord-2.2.2/lib/active_record/
base.rb:2892:in `execute_callstack_for_multiparameter_attributes'
/Library/Ruby/Gems/1.8/gems/activerecord-2.2.2/lib/active_record/
base.rb:2853:in `assign_multiparameter_attributes'
/Library/Ruby/Gems/1.8/gems/activerecord-2.2.2/lib/active_record/
base.rb:2591:in `attributes='
/Library/Ruby/Gems/1.8/gems/activerecord-2.2.2/lib/active_record/
base.rb:2469:in `update_attributes'
/Users/gturnbul/Sites/tourbooking/trunk/app/controllers/
tour_requests_controller.rb:104:in `update'
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
mime_responds.rb:106:in `call'
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
mime_responds.rb:106:in `respond_to'
/Users/gturnbul/Sites/tourbooking/trunk/app/controllers/
tour_requests_controller.rb:102:in `update'
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
base.rb:1253:in `send'
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
base.rb:1253:in `perform_action_without_filters'
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
filters.rb:617:in `call_filters'
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
filters.rb:610:in `perform_action_without_benchmark'
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
benchmarking.rb:68:in `perform_action_without_rescue'
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
benchmarking.rb:68:in `perform_action_without_rescue'
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
rescue.rb:136:in `perform_action_without_caching'
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
caching/sql_cache.rb:13:in `passenger_orig_perform_action'
/Library/Ruby/Gems/1.8/gems/activerecord-2.2.2/lib/active_record/
connection_adapters/abstract/query_cache.rb:34:in `cache'
/Library/Ruby/Gems/1.8/gems/activerecord-2.2.2/lib/active_record/
query_cache.rb:8:in `cache'
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
caching/sql_cache.rb:12:in `passenger_orig_perform_action'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
request_handler.rb:145:in `perform_action'
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
base.rb:524:in `send'
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
base.rb:524:in `process_without_filters'
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
filters.rb:606:in `process_without_session_management_support'
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
session_management.rb:134:in `process'
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
base.rb:392:in `process'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
request_handler.rb:304:in `process_request'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
request_handler.rb:180:in `main_loop'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
application_spawner.rb:320:in `start_request_handler'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
application_spawner.rb:282:in `handle_spawn_application'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
application_spawner.rb:280:in `fork'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
application_spawner.rb:280:in `handle_spawn_application'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
application_spawner.rb:278:in `fork'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
application_spawner.rb:278:in `handle_spawn_application'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
abstract_server.rb:291:in `__send__'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
abstract_server.rb:291:in `main_loop'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
abstract_server.rb:147:in `start_synchronously'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
abstract_server.rb:114:in `start'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
abstract_server.rb:108:in `fork'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
abstract_server.rb:108:in `start'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
application_spawner.rb:147:in `start'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
framework_spawner.rb:278:in `handle_spawn_application'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
framework_spawner.rb:273:in `synchronize'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
framework_spawner.rb:273:in `handle_spawn_application'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
abstract_server.rb:291:in `__send__'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
abstract_server.rb:291:in `main_loop'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
abstract_server.rb:147:in `start_synchronously'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
abstract_server.rb:114:in `start'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
abstract_server.rb:108:in `fork'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
abstract_server.rb:108:in `start'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
framework_spawner.rb:104:in `start'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
spawn_manager.rb:106:in `spawn_application'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
spawn_manager.rb:102:in `synchronize'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
spawn_manager.rb:102:in `spawn_application'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
spawn_manager.rb:183:in `handle_spawn_application'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
abstract_server.rb:291:in `__send__'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
abstract_server.rb:291:in `main_loop'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
abstract_server.rb:147:in `start_synchronously'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/bin/passenger-spawn-server:
32

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
1.8/benchmark.rb:293:in `measure'
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
dispatcher.rb:183:in `handle_request'
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
dispatcher.rb:110:in `dispatch_unlocked'
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
dispatcher.rb:123:in `dispatch'
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
dispatcher.rb:122:in `synchronize'
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
dispatcher.rb:122:in `dispatch'
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
dispatcher.rb:132:in `dispatch_cgi'
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
dispatcher.rb:39:in `dispatch'

/Library/Ruby/Gems/1.8/gems/activerecord-2.2.2/lib/active_record/
base.rb:2892:in `execute_callstack_for_multiparameter_attributes'
/Library/Ruby/Gems/1.8/gems/activerecord-2.2.2/lib/active_record/
base.rb:2853:in `assign_multiparameter_attributes'
/Library/Ruby/Gems/1.8/gems/activerecord-2.2.2/lib/active_record/
base.rb:2591:in `attributes='
/Library/Ruby/Gems/1.8/gems/activerecord-2.2.2/lib/active_record/
base.rb:2469:in `update_attributes'
/Users/gturnbul/Sites/tourbooking/trunk/app/controllers/
tour_requests_controller.rb:104:in `update'
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
mime_responds.rb:106:in `call'
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
mime_responds.rb:106:in `respond_to'
/Users/gturnbul/Sites/tourbooking/trunk/app/controllers/
tour_requests_controller.rb:102:in `update'
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
base.rb:1253:in `send'
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
base.rb:1253:in `perform_action_without_filters'
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
filters.rb:617:in `call_filters'
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
filters.rb:610:in `perform_action_without_benchmark'
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
benchmarking.rb:68:in `perform_action_without_rescue'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
1.8/benchmark.rb:293:in `measure'
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
benchmarking.rb:68:in `perform_action_without_rescue'
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
rescue.rb:136:in `perform_action_without_caching'
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
caching/sql_cache.rb:13:in `passenger_orig_perform_action'
/Library/Ruby/Gems/1.8/gems/activerecord-2.2.2/lib/active_record/
connection_adapters/abstract/query_cache.rb:34:in `cache'
/Library/Ruby/Gems/1.8/gems/activerecord-2.2.2/lib/active_record/
query_cache.rb:8:in `cache'
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
caching/sql_cache.rb:12:in `passenger_orig_perform_action'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
request_handler.rb:145:in `perform_action'
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
base.rb:524:in `send'
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
base.rb:524:in `process_without_filters'
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
filters.rb:606:in `process_without_session_management_support'
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
session_management.rb:134:in `process'
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
base.rb:392:in `process'
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
dispatcher.rb:183:in `handle_request'
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
dispatcher.rb:110:in `dispatch_unlocked'
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
dispatcher.rb:123:in `dispatch'
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
dispatcher.rb:122:in `synchronize'
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
dispatcher.rb:122:in `dispatch'
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
dispatcher.rb:132:in `dispatch_cgi'
/Library/Ruby/Gems/1.8/gems/actionpack-2.2.2/lib/action_controller/
dispatcher.rb:39:in `dispatch'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
request_handler.rb:304:in `process_request'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
request_handler.rb:180:in `main_loop'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
application_spawner.rb:320:in `start_request_handler'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
application_spawner.rb:282:in `handle_spawn_application'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
application_spawner.rb:280:in `fork'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
application_spawner.rb:280:in `handle_spawn_application'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
application_spawner.rb:278:in `fork'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
application_spawner.rb:278:in `handle_spawn_application'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
abstract_server.rb:291:in `__send__'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
abstract_server.rb:291:in `main_loop'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
abstract_server.rb:147:in `start_synchronously'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
abstract_server.rb:114:in `start'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
abstract_server.rb:108:in `fork'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
abstract_server.rb:108:in `start'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
application_spawner.rb:147:in `start'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
framework_spawner.rb:278:in `handle_spawn_application'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
framework_spawner.rb:273:in `synchronize'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
framework_spawner.rb:273:in `handle_spawn_application'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
abstract_server.rb:291:in `__send__'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
abstract_server.rb:291:in `main_loop'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
abstract_server.rb:147:in `start_synchronously'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
abstract_server.rb:114:in `start'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
abstract_server.rb:108:in `fork'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
abstract_server.rb:108:in `start'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
framework_spawner.rb:104:in `start'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
spawn_manager.rb:106:in `spawn_application'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
spawn_manager.rb:102:in `synchronize'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
spawn_manager.rb:102:in `spawn_application'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
spawn_manager.rb:183:in `handle_spawn_application'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
abstract_server.rb:291:in `__send__'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
abstract_server.rb:291:in `main_loop'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/lib/passenger/
abstract_server.rb:147:in `start_synchronously'
/Library/Ruby/Gems/1.8/gems/passenger-1.0.5/bin/passenger-spawn-server:
32

Request

Parameters:

{"commit"=>"Update Tour Request",
 "tour_request"=>{"packets"=>[],
 "status"=>"received",
 "booked_datetime(3i)"=>"13",
 "sponsor_group_id"=>"19",
 "externalsponsor_group_id"=>"",
 "daterequested(3i)"=>"21",
 "altdaterequested(1i)"=>"2008",
 "actual_attendees"=>"",
 "booked_datetime(4i)"=>"02",
 "special_needs"=>"",
 "altdaterequested(2i)"=>"11",
 "packet_ids"=>["7",
 "10",
 "14"],
 "est_duration"=>"",
 "booked_datetime(5i)"=>"00",
 "comments"=>"",
 "title"=>"Chair",
 "group_relationship"=>"we are a sub committee of ASU's Technical
Advisory Group(TAG)",
 "altdaterequested(3i)"=>"27",
 "preferredtime_string"=>"01:00 PM",
 "translators"=>"",
 "namelist_duedate(1i)"=>"",
 "sent_namelist_to_reception(1i)"=>"",
 "group_location"=>"Tempe,
 AZ",
 "audiencedesc"=>"other",
 "tour_guide_ids"=>["23",
 "17"],
 "est_group_size"=>"25",
 "namelist_duedate(2i)"=>"",
 "sent_namelist_to_reception(2i)"=>"",
 "altpreferredtime_string"=>"04:00 PM",
 "parking_confirmation_sent(1i)"=>"",
 "booked_datetime(7i)"=>"-2",
 "namelist_duedate(3i)"=>"",
 "sent_namelist_to_reception(3i)"=>"",
 "firstname"=>"Gregg",
 "lastname"=>"Turnbull",
 "conference_room_ids"=>["3",
 "4"],
 "parking_spaces_confirmdate(1i)"=>"",
 "parking_confirmation_sent(2i)"=>"",
 "packet_count"=>"25",
 "parking_spaces_confirmdate(2i)"=>"",
 "parking_confirmation_sent(3i)"=>"",
 "phone"=>"555-555-5555",
 "parking_spaces_requested"=>"",
 "parking_spaces_confirmdate(3i)"=>"",
 "namelist_complete"=>"1",
 "organization"=>"SWD - Secure Web D.s",
 "group_purpose"=>"develop secure web based solutions",
 "groupgain"=>"",
 "booked_datetime(1i)"=>"2008",
 "high_profile_visitor"=>"1",
 "daterequested(1i)"=>"2008",
 "information_requested"=>"web software development",
 "booked_datetime(2i)"=>"11",
 "requested_languages"=>"",
 "email"=>"removed_email_address@domain.invalid",
 "groupname"=>"SWD Steering committee",
 "audiencedesc_other"=>"ASU Group",
 "daterequested(2i)"=>"11",
 "parking_po"=>"0"},
 "_method"=>"put",
 "authenticity_token"=>"be6b6926d0fef413b35e95d133a13d42bd8389aa",
 "id"=>"5"}

local gems on dev::
*** LOCAL GEMS ***

actionmailer (2.3.2, 2.2.2, 2.1.2, 2.1.0, 2.0.2, 1.3.6)
actionpack (2.3.2, 2.2.2, 2.1.2, 2.1.0, 2.0.2, 1.13.6)
actionwebservice (1.2.6)
activerecord (2.3.2, 2.2.2, 2.1.2, 2.1.0, 2.0.2, 1.15.6)
activeresource (2.3.2, 2.2.2, 2.1.2, 2.1.0, 2.0.2)
activesupport (2.3.2, 2.2.2, 2.1.2, 2.1.0, 2.0.2, 1.4.4)
acts_as_ferret (0.4.3, 0.4.1)
arrayfields (4.7.3, 4.7.2, 4.6.0)
builder (2.1.2)
capistrano (2.5.5, 2.5.1, 2.5.0, 2.0.0)
cgi_multipart_eof_fix (2.5.0, 2.2)
chronic (0.2.3)
cucumber (0.2.3, 0.2.0)
daemons (1.0.10, 1.0.9, 1.0.7)
diff-lcs (1.1.2)
dnssd (0.7.1, 0.7.0, 0.6.0)
evilchelu-braid (0.5, 0.4.13)
fastthread (1.0.7, 1.0.6, 1.0.1)
fattr (1.0.3)
fcgi (0.8.7)
ferret (0.11.6, 0.11.4)
gem_plugin (0.2.3, 0.2.2)
highline (1.5.0, 1.4.0, 1.2.9)
hoe (1.12.1, 1.11.0, 1.8.2, 1.6.0)
hpricot (0.8.1, 0.7, 0.6.164, 0.6)
httpclient (2.1.4, 2.1.2)
libxml-ruby (1.1.3, 0.9.5, 0.8.3, 0.3.8.4)
log4r (1.0.5)
main (2.8.3)
mislav-will_paginate (2.3.8, 2.3.6)
mongrel (1.1.5, 1.1.4, 1.0.1)
mysql (2.7)
needle (1.3.0)
net-scp (1.0.2, 1.0.1)
net-sftp (2.0.2, 2.0.1, 1.1.0)
net-ssh (2.0.11, 2.0.4, 1.1.2)
net-ssh-gateway (1.0.1, 1.0.0)
open4 (0.9.6)
packet (0.1.15)
passenger (2.1.3, 2.0.3, 1.0.5)
polyglot (0.2.5)
rack (0.9.1, 0.4.0)
radiant (0.7.1, 0.6.9)
rails (2.3.2, 2.2.2, 2.1.2, 2.1.0, 2.0.2, 1.2.6)
rake (0.8.4, 0.8.3, 0.8.1, 0.7.3)
RedCloth (4.1.9, 4.1.0, 3.0.4)
rmagick (2.9.1, 2.8.0)
rspec (1.2.2, 1.2.0)
rspec-rails (1.2.2, 1.2.0)
ruby-activeldap (0.8.3.1)
ruby-net-ldap (0.0.4)
ruby-ole (1.2.8.2)
ruby-openid (2.1.4, 2.1.2, 1.1.4)
ruby-yadis (0.3.4)
rubyforge (1.0.3, 1.0.1, 1.0.0)
rubygems-update (1.3.1, 1.2.0)
rubynode (0.1.5, 0.1.3)
soap4r (1.5.8)
spreadsheet (0.6.3.1)
sqlite3-ruby (1.2.4, 1.2.1)
term-ansicolor (1.0.3)
termios (0.9.4)
transaction-simple (1.4.0)
treetop (1.2.5)
xml-simple (1.0.12, 1.0.11)
Gregg Turnbull (Guest)
on 2009-06-03 18:58
(Received via mailing list)
My ugly work around is as follows.  Just by passing the rails magic
and building the datetime value on my own in the controller

#work around for broken datetime_select
  params[:tour_request][:booked_datetime]=Time.local(
    params[:tour_request][:"booked_datetime(1i)"].to_i,
    params[:tour_request][:"booked_datetime(2i)"].to_i,
    params[:tour_request][:"booked_datetime(3i)"].to_i,
    #add read for am/pm
    params[:tour_request][:"booked_datetime(7i)"].to_i==-1 ? params
[:tour_request][:"booked_datetime(4i)"].to_i : params[:tour_request]
[:"booked_datetime(4i)"].to_i+12,
    params[:tour_request][:"booked_datetime(5i)"].to_i,0,0)

   #clean up to avoid multivariable error
   params[:tour_request].delete(:"booked_datetime(1i)")
   params[:tour_request].delete(:"booked_datetime(2i)")
   params[:tour_request].delete(:"booked_datetime(3i)")
   params[:tour_request].delete(:"booked_datetime(4i)")
   params[:tour_request].delete(:"booked_datetime(5i)")
   params[:tour_request].delete(:"booked_datetime(7i)")

I know it is a rusty hammer but hit appears to be hitting nails into
the wood just fine.

Cheers,
Gregg
This topic is locked and can not be replied to.