Forum: Ruby on Rails Error - Conflicting types for parameter containers

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.
Scott (Guest)
on 2007-03-24 01:17
(Received via mailing list)
Hi,

I am trying to implement password-reset functionality.

I have an email sent out to a user when they request a password. The
URL in the email contains a cgi param, of which is a SHA 256 hex
digest. The user clicks on that link and the page is opened in a
separate window, when the user enters in their password. When I hit
submit, I get the following error, anyone run into this error before?

Thanks,

Scott

Conflicting types for parameter containers. Expected an instance of
Hash, but found an instance of String. This can be caused by passing
Array and Hash based paramters qs[]=value&qs[key]=value.
/Users/stamosunas/workspaces/ruby/mgs/config/../vendor/rails/
actionpack/lib/action_controller/cgi_ext/cgi_methods.rb:204:in
`type_conflict!'
/Users/stamosunas/workspaces/ruby/mgs/config/../vendor/rails/
actionpack/lib/action_controller/cgi_ext/cgi_methods.rb:168:in
`container'
/Users/stamosunas/workspaces/ruby/mgs/config/../vendor/rails/
actionpack/lib/action_controller/cgi_ext/cgi_methods.rb:158:in
`post_key_check'
/Users/stamosunas/workspaces/ruby/mgs/config/../vendor/rails/
actionpack/lib/action_controller/cgi_ext/cgi_methods.rb:134:in `parse'
/Users/stamosunas/workspaces/ruby/mgs/config/../vendor/rails/
actionpack/lib/action_controller/cgi_ext/cgi_methods.rb:37:in
`parse_request_parameters'
/Users/stamosunas/workspaces/ruby/mgs/config/../vendor/rails/
actionpack/lib/action_controller/cgi_ext/cgi_methods.rb:28:in `each'
/Users/stamosunas/workspaces/ruby/mgs/config/../vendor/rails/
actionpack/lib/action_controller/cgi_ext/cgi_methods.rb:28:in
`parse_request_parameters'
/Users/stamosunas/workspaces/ruby/mgs/config/../vendor/rails/
actionpack/lib/action_controller/cgi_process.rb:72:in
`request_parameters'
/Users/stamosunas/workspaces/ruby/mgs/config/../vendor/rails/
actionpack/lib/action_controller/request.rb:13:in `parameters'
/Users/stamosunas/workspaces/ruby/mgs/config/../vendor/rails/
actionpack/lib/action_controller/request.rb:20:in `method'
/Users/stamosunas/workspaces/ruby/mgs/config/../vendor/rails/
actionpack/lib/action_controller/routing.rb:1307:in
`extract_request_environment'
/Users/stamosunas/workspaces/ruby/mgs/config/../vendor/rails/
actionpack/lib/action_controller/routing.rb:1256:in `recognize'
/Users/stamosunas/workspaces/ruby/mgs/config/../vendor/rails/railties/
lib/dispatcher.rb:40:in `dispatch'
/Applications/Locomotive2/Bundles/standardRailsJan2007.locobundle/i386/
lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/rails.rb:84:in
`process'
/Applications/Locomotive2/Bundles/standardRailsJan2007.locobundle/i386/
lib/ruby/1.8/sync.rb:229:in `synchronize'
/Applications/Locomotive2/Bundles/standardRailsJan2007.locobundle/i386/
lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/rails.rb:83:in
`process'
/Applications/Locomotive2/Bundles/standardRailsJan2007.locobundle/i386/
lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:580:in
`process_client'
/Applications/Locomotive2/Bundles/standardRailsJan2007.locobundle/i386/
lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:579:in `each'
/Applications/Locomotive2/Bundles/standardRailsJan2007.locobundle/i386/
lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:579:in
`process_client'
/Applications/Locomotive2/Bundles/standardRailsJan2007.locobundle/i386/
lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:686:in `run'
/Applications/Locomotive2/Bundles/standardRailsJan2007.locobundle/i386/
lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:686:in
`initialize'
/Applications/Locomotive2/Bundles/standardRailsJan2007.locobundle/i386/
lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:686:in `new'
/Applications/Locomotive2/Bundles/standardRailsJan2007.locobundle/i386/
lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:686:in `run'
/Applications/Locomotive2/Bundles/standardRailsJan2007.locobundle/i386/
lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:673:in
`initialize'
/Applications/Locomotive2/Bundles/standardRailsJan2007.locobundle/i386/
lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:673:in `new'
/Applications/Locomotive2/Bundles/standardRailsJan2007.locobundle/i386/
lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel.rb:673:in `run'
/Applications/Locomotive2/Bundles/standardRailsJan2007.locobundle/i386/
lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/configurator.rb:
267:in `run'
/Applications/Locomotive2/Bundles/standardRailsJan2007.locobundle/i386/
lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/configurator.rb:
266:in `each'
/Applications/Locomotive2/Bundles/standardRailsJan2007.locobundle/i386/
lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/configurator.rb:
266:in `run'
/Applications/Locomotive2/Bundles/standardRailsJan2007.locobundle/i386/
lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/bin/mongrel_rails:127:in `run'
/Applications/Locomotive2/Bundles/standardRailsJan2007.locobundle/i386/
lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/command.rb:211:in
`run'
/Applications/Locomotive2/Bundles/standardRailsJan2007.locobundle/i386/
lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/bin/mongrel_rails:231
/Applications/Locomotive2/Bundles/standardRailsJan2007.locobundle/i386/
bin/mongrel_rails:16:in `load'
/Applications/Locomotive2/Bundles/standardRailsJan2007.locobundle/i386/
bin/mongrel_rails:16
This topic is locked and can not be replied to.