search for: build_deep_hash

Displaying 5 results from an estimated 5 matches for "build_deep_hash".

2006 Jun 21
7
sortable tree problem
...n Sortable. If I set the option to false my remote call works fine, but once I set it to true, I get some weird log errors from Webrick... undefined method `update'' for "11":String /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/cgi_ext/cgi_methods.rb:214:in `build_deep_hash'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/cgi_ext/cgi_methods.rb:214:in `build_deep_hash'' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/cgi_ext/cgi_methods.rb:54:in `parse_request_parameters'' /usr/lib/ruby/gems/1.8/gems/act...
2006 Apr 17
3
help debugging an error
...ils error message, but a un-formatted error message) cannot convert String into Integer ./script/../config/../vendor/rails/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb:214:in `[]'' ./script/../config/../vendor/rails/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb:214:in `build_deep_hash'' ./script/../config/../vendor/rails/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb:214:in `build_deep_hash'' ./script/../config/../vendor/rails/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb:214:in `build_deep_hash'' ./script/../config/../vendor/rails/acti...
2006 Jan 28
0
submitting xml documents from POST request/ test framework
.... results are the same with both webrick and apache/fastcgi. After much searching of rails and other ruby code, I found where the error was occurring. The problem crops up in the ActionController (ActionPack-1.11.2) in the cgi_methods.rb file. When CGIMethods.parse_request_parameters() calls build_deep_hash, things can apparently go terribly wrong. The problem is that the cgi object''s parameters get parsed from stdin according to the rules of the URL query string. This includes breaking on "&" and looking for key/value pairs. thus the problem with escaped XML entities. b...
2007 Dec 03
3
Request param type of array
...params = params.dup until params.empty? for key, value in params if key.blank? params.delete key elsif !key.include?(''['') # much faster to test for the most common case first (GET) # and avoid the call to build_deep_hash parser.result[key] = get_typed_value(value[0]) params.delete key elsif value.is_a?(Array) parser.parse(key, get_typed_value(value.shift)) params.delete key if value.empty? else raise TypeError, "Expected array, fou...
2006 Mar 06
2
form_tag error -- not found, 404 -- action DOES exist!
...e_visit/input/1 HTTP/1.1" 200 153359 http://localhost:3000/admin/visit_data -> /site_visit/input/1 #<NoMethodError: undefined method `update'' for "0":String> ["c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/cgi_ext/ cgi_methods.rb:116:in `build_deep_hash''", "c:/ruby/lib/ruby/gems/1.8/gems/action pack-1.9.1/lib/action_controller/cgi_ext/cgi_methods.rb:116:in `build_deep_hash'' ", "c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/cgi_ex t/cgi_methods.rb:41:in `parse_request_parameters'&...