This project is archived and is in readonly mode.

#1910 ✓invalid
kpitn

Conflicting types for parameter containers.

Reported by kpitn | February 8th, 2009 @ 12:17 PM | in 2.x

With a "complex" form, i have the error below

My form look like this :

file index.html.erb


<% remote_form_for ...  do |f| %>
<%= f.text_field :first_name %>
<%= render :partial=>"/addresses/item" %>
<% end %>

File item.html.erb


<%= text_field_tag "address[street]",address.street %>

With Rails 2.2.2, no problem with Rails 2.3.0, I have this error :


/!\ FAILSAFE /!\  Sun Feb 08 13:09:47 +0100 2009
  Status: 500 Internal Server Error
  Conflicting types for parameter containers. Expected an instance of Hash but found an instance of String. This can be caused by colliding Array and Hash parameters like qs[]=value&qs[key]=value. (The parameters received were "".)
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.0/lib/action_controller/url_encoded_pair_parser.rb:152:in `type_conflict!'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.0/lib/action_controller/url_encoded_pair_parser.rb:115:in `container'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.0/lib/action_controller/url_encoded_pair_parser.rb:106:in `post_key_check'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.0/lib/action_controller/url_encoded_pair_parser.rb:82:in `parse'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.0/lib/action_controller/url_encoded_pair_parser.rb:30:in `parse_hash_parameters'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.0/lib/action_controller/url_encoded_pair_parser.rb:23:in `each'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.0/lib/action_controller/url_encoded_pair_parser.rb:23:in `parse_hash_parameters'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.0/lib/action_controller/request.rb:428:in `request_parameters'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.0/lib/action_controller/request.rb:381:in `parameters'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.0/lib/action_controller/base.rb:1218:in `assign_shortcuts'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.0/lib/action_controller/base.rb:518:in `process_without_filters'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.0/lib/action_controller/filters.rb:606:in `process'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.0/lib/action_controller/rescue.rb:65:in `call_with_exception'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.0/lib/action_controller/dispatcher.rb:68:in `dispatch'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.0/lib/action_controller/dispatcher.rb:88:in `_call'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.0/lib/action_controller/dispatcher.rb:59:in `initialize'
    /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.0/lib/active_record/query_cache.rb:29:in `call'
    /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.0/lib/active_record/query_cache.rb:29:in `call'
    /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.0/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
    /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.0/lib/active_record/query_cache.rb:9:in `cache'
    /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.0/lib/active_record/query_cache.rb:28:in `call'
    /usr/lib/ruby/gems/1.8/gems/rack-0.9.1/lib/rack/head.rb:9:in `call'
    /usr/lib/ruby/gems/1.8/gems/rack-0.9.1/lib/rack/methodoverride.rb:24:in `call'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.0/lib/action_controller/params_parser.rb:15:in `call'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.0/lib/action_controller/rewindable_input.rb:25:in `call'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.0/lib/action_controller/session/cookie_store.rb:93:in `call'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.0/lib/action_controller/failsafe.rb:11:in `call'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.0/lib/action_controller/rack_ext/lock.rb:15:in `call'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.0/lib/action_controller/rack_ext/lock.rb:15:in `synchronize'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.0/lib/action_controller/rack_ext/lock.rb:15:in `call'
    /usr/lib/ruby/gems/1.8/gems/actionpack-2.3.0/lib/action_controller/dispatcher.rb:83:in `call'
    /usr/lib/ruby/gems/1.8/gems/rails-2.3.0/lib/rails/rack/static.rb:27:in `call'
    /usr/lib/ruby/gems/1.8/gems/rails-2.3.0/lib/rails/rack/log_tailer.rb:17:in `call'
    /usr/lib/ruby/gems/1.8/gems/rack-0.9.1/lib/rack/handler/mongrel.rb:59:in `process'
    /var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in `process_client'
    /var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each'
    /var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `process_client'
    /var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
    /var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `initialize'
    /var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new'
    /var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
    /var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `initialize'
    /var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new'
    /var/lib/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run'
    /usr/lib/ruby/gems/1.8/gems/rack-0.9.1/lib/rack/handler/mongrel.rb:32:in `run'
    /usr/lib/ruby/gems/1.8/gems/rails-2.3.0/lib/commands/server.rb:100
    /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    script/server:3

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Pages