search for: param_parsers

Displaying 3 results from an estimated 3 matches for "param_parsers".

2006 Jul 27
2
more on file upload
...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[''RAW_POST_DATA'']) else CGIMethods.parse_request_parameters(@cgi.params) end end regards, On 7/26/06, Jonas Pfenniger <zimba.tm at gmail.com> wrote: >...
2006 Jul 31
3
Simply_RESTful and Bulk Import URLs
Hi, I have a people controller, and want to import bulk import multiple people from a CSV file. In my routes.rb file I have: map.resource :person Now, it''s a little unclear to me how to further configure the routes to allow me to add the following URLs: I need a URL to choose a file to upload, so I need an HTML ''frontend'' for it, so I figured the following URL
2006 Jul 31
3
Problem in posting xml content.
When I post the XML data as the 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