search for: cgi_methods

Displaying 11 results from an estimated 11 matches for "cgi_methods".

2006 Jun 21
7
sortable tree problem
...e tree option to true on 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...
2006 Apr 17
3
help debugging an error
...o the unrouted url, I still get the same error message. So, on a form submission, I get the following error: (it is not the regular rails 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/../ven...
2007 Mar 23
0
Error - Conflicting types for parameter containers
...onflicting 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...
2006 Jul 31
3
Problem in posting xml content.
...he message content to my rails website, I can see the exception info in the log file. The error message is "can''t typecast" the element name in my xml document. The first line in backtrace is: "c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.3/lib/action_controller/cgi_ext/cgi_methods.rb:111:in`typecast_xml_value''" Please give me some information on how to settle this problem. Thanks. -- Posted via http://www.ruby-forum.com/.
2006 Mar 06
2
form_tag error -- not found, 404 -- action DOES exist!
...d Time] "GET /site_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 `par...
2007 Dec 03
3
Request param type of array
...>"params"} <% raise request.cgi.params.inspect %> {"myfield"=>["value1", "value2"], "_submit"=>["OK"]} ================ In Rails source code I have found such code: ---> actionpack-1.13.5/lib/action_controller/cgi_ext/cgi_methods.rb (line 23): def parse_request_parameters(params) parser = FormEncodedPairParser.new params = params.dup until params.empty? for key, value in params if key.blank? params.delete key elsif !key.include?(''['')...
2006 Jul 27
2
more on file upload
...ode for inspiration, but it''s a bit outside of my knowledge..... not sure what to do with a FCGI::Stream object ..... this is what rails do for CGI, I''m not sure if it works the same for FCGI, I have not found the code yet. require actionpack-1.12.3/lib/action_controller/cgi_ext/cgi_methods.rb def query_parameters (qs = self.query_string).empty? ? {} : CGIMethods.parse_query_parameters(qs) end def request_parameters if ActionController::Base.param_parsers.has_key?(content_type) CGIMethods.parse_formatted_request_parameters(content_type, @env[''...
2006 Jul 24
0
parsing xml from post
...ning on using REXML and reading the raw post data. Then I noticed that if the content type is text/xml, rails parses the xml into the params hash. However, it chokes on attributes in the xml such as the xml below, throwing an error that it can''t typecast the attribute value in line 99 of cgi_methods.rb (snippet included below). It would be nice just to use the built in xml parsing, but even if I use REXML directly I''d like to get rid of this error. Anyone know how to fix this (my code or rails wherever the real problem is) ? <?xml version="1.0" encoding="UTF-8&qu...
2006 Jan 28
0
submitting xml documents from POST request/ test framework
...he development log and returns a 500 Internal Server error to my client. 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 l...
2006 Nov 19
3
Binary PUT requests are failing
Does anyone know why binary PUTs are causing a 500 error in Rails? Non binary PUTs are working fine. I''m trying to make a WebDAV server. I''ve tried using both mongrel and webrick. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2007 Nov 29
5
Webrat 0.1.0 released - Ruby Acceptance Testing for Web applications
Hey guys, We developed this plugin while writing my first real set of RSpec stories. It''s still missing a lot of functionality, but it''s useful to us as is, so I''m shipping 0.1.0. (Patches welcome. :) ) Code is available at: http://svn.eastmedia.net/public/plugins/webrat/ What do you think? -Bryan Here''s the README: