Displaying 20 results from an estimated 21 matches for "request_paramet".
Did you mean:
request_parameter
2008 Jan 24
5
Is there a test for setting the session ID to the fb_sig_session_key param?
Hey all,
I have a patch that fixes a problem I am having with IFramed pages in
rails 2.0. I am relying on the session being retrieved via
fb_sig_session_key. I am looking for the test code that tests this
functionality but I can''t seem to find it.
So you on the list today Chad, gotta pointer for me?
Thanks, I want to get a test in for this fix,
Dave
2006 Jun 16
0
rake spec controller test output hideus.
...ation"=>"wrong",
"login"=>"newbob", "password"=>"newpassword",
"email"=>"newbob@mcbob.com"}, "action"=>"signup",
"controller"=>"user"}, @path=nil, @content_type=nil,
@request_parameters={:user=>{:password=>"newpassword",
:login=>"newbob", :email=>"newbob@mcbob.com",
:password_confirmation=>"wrong"}, "action"=>"signup",
"controller"=>"user"}>>,
"session"=>#<...
2006 Jun 21
7
sortable tree problem
...on_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/actionpack-1.12.1/lib/action_controller/cgi_ext/cgi_methods.rb:47:in
`parse_request_parameters''
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/cgi_process.rb:70:in
`request_parameters''
/usr/lib/ruby/gems/1.8/gems/action...
2008 Feb 15
3
Ajax problem with rails 2.0.2 - frozen string?
...ction_controller/request.rb:462:in `gsub!''
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
action_controller/request.rb:462:in `clean_up_ajax_request_body!''
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
action_controller/request.rb:380:in
`parse_formatted_request_parameters''
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
action_controller/cgi_process.rb:78:in `request_parameters''
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
action_controller/request.rb:287:in `parameters''
/usr/local/lib/ruby/gems/1.8/gems/a...
2008 Jun 21
5
RJS can't modify frozen string
...ction_controller/request.rb:462:in `gsub!''
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
action_controller/request.rb:462:in `clean_up_ajax_request_body!''
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
action_controller/request.rb:380:in
`parse_formatted_request_parameters''
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
action_controller/cgi_process.rb:78:in `request_parameters''
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/
action_controller/request.rb:287:in `parameters''
/usr/local/lib/ruby/gems/1.8/gems/a...
2006 Jul 27
2
more on file upload
...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[''RAW_POST_DATA''])
else
CGIMethods.parse_request_parameters(@cgi.params)
end
end
regards,
On 7/26/06, Jonas Pf...
2006 Apr 17
3
help debugging an error
...on_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:54:in
`parse_request_parameters''
./script/../config/../vendor/rails/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb:47:in
`each''
./script/../config/../vendor/rails/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb:47:in
`parse_request_parameters''
./script/../config/../vendor/rails/actio...
2007 Oct 22
0
[PATCH] - AbstractRequest#parameters destructively overwrites request_ and query_parameters
Hi guys,
I''m looking for some +1''s for a bug fix patch I submitted:http://
dev.rubyonrails.org/ticket/9949
AbstractRequest#parameters is overwriting request_parameters when
called, so I drew up a patch and test case to fix it. Any people
willing to try it out would be much appreciated.
Thank,
Scott Fleckenstein
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails...
2011 Jan 10
0
Can't use ActionDispatch::Request in Rails middleware because path_parameters get lost
...;'parameters'' method.
You can see the code in question here:
# file: action_dispatch/http/parameters.rb
# Returns both GET and POST \parameters in a single hash.
def parameters
@env["action_dispatch.request.parameters"] ||= begin
params = request_parameters.merge(query_parameters)
params.merge!(path_parameters)
encode_params(params).with_indifferent_access
end
end
alias :params :parameters
def path_parameters=(parameters) #:nodoc:
@symbolized_path_params = nil
@env.delete("action_d...
2012 Jul 25
1
A minor beef with JSON::decode
...on requests? The project I''m on
expects parameters to be received as standard types (bools, numbers,
strings, arrays, and hashes). Rails shouldn''t try to convert objects that
are explicitly passed as these types; it should be up to the application to
do that.
example:
JSON
request_parameters:{"foo":"2012-05-12"}
Should get to our controller as
params[:foo] => "2012-05-12"
But instead comes in as
params[:foo] => Date:<0x2af5607>
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" gr...
2005 Nov 04
0
Dispatch error on textdrive
...ib/action_controller/request.rb:23:in
`post?''
from
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.10.2/lib/action_controller/request.rb:68:in
`formatted_post?''
from
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.10.2/lib/action_controller/cgi_process.rb:66:in
`request_parameters''
from
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.10.2/lib/action_controller/request.rb:8:in
`parameters''
from
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.10.2/lib/action_controller/session_management.rb:114:in
`process''
from
/usr/loc...
2009 May 09
0
XMLRPC raw_post getting run through Hash#from_xml
Im trying to create an api, and Im having trouble getting
ActionController to not run the raw post data through Hash#from_xml
(request.parse_formatted_request_parameters) for the XMLRPC post data.
I essentially want it to run through
XMLRPC::XMLParser::REXMLStreamParser.new.parseMethodCall(request.raw_post).
However, I can''t figure out a clever, clean way to get
request.request_parameters to not run since it can run as early as the
dispatcher, which w...
2007 Dec 20
0
Relative URL fix
...url
end
Here is a slight change to the rewrite_url_with_facebooker method,
which deletes the :skip_relative_url_root key if it is true.
def rewrite_url_with_facebooker(*args)
options = args.first.is_a?(Hash) ? args.first : args.last
is_link_to_canvas=link_to_canvas?(@request.request_parameters,
options)
options[:skip_relative_url_root] ||= !is_link_to_canvas
options.delete(:skip_relative_url_root) if options
[:skip_relative_url_root] == true && !is_link_to_canvas
if is_link_to_canvas && !options.has_key?(:host)
options[:host] = "...
2008 Feb 07
2
FAILSAFE error with uploads
...actionpack/lib/action_controller/
request.rb:510:in `read_multipart''
/my/app/web/vendor/rails/actionpack/lib/action_controller/
request.rb:445:in `parse_multipart_form_parameters''
/my/app/web/vendor/rails/actionpack/lib/action_controller/
request.rb:383:in `parse_formatted_request_parameters''
/my/app/web/vendor/rails/actionpack/lib/action_controller/
cgi_process.rb:78:in `request_parameters''
/my/app/web/vendor/rails/actionpack/lib/action_controller/
request.rb:287:in `parameters''
/my/app/web/vendor/rails/actionpack/lib/action_controller/
reques...
2007 Mar 23
0
Error - Conflicting types for parameter containers
...`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_paramet...
2008 Apr 05
1
Problems getting file upload to work on rails 2.0.2
...action_controller/request.rb:517:in
`read_multipart''
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/request.rb:445:in
`parse_multipart_form_parameters''
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/request.rb:383:in
`parse_formatted_request_parameters''
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/cgi_process.rb:78:in
`request_parameters''
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/request.rb:287:in
`parameters''
/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/...
2006 Mar 06
2
form_tag error -- not found, 404 -- action DOES exist!
...: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''",
"c:/ruby/lib/ruby/gems/1.8/g
ems/actionpack-1.9.1/lib/action_controller/cgi_ext/cgi_methods.rb:39:in
`each''",
"c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/lib/action_controller/cgi_ext/
cgi_methods.rb:39:in `parse_request_parameters''"...
2007 Jan 31
7
GET request works via curl, crashes from Java
...nstants_in''
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:496:in
`require''
script/server:3
Here''s the code in request.rb:
# Returns both GET and POST parameters in a single hash.
def parameters
@parameters ||=
request_parameters.update(query_parameters).update(path_parameters).with_indifferent_access
end
The Java program is expecting an xml file and obviously isn''t getting
what it is supposed to:
org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Content
is not allowed in prolog.
I thought i...
2004 Oct 25
1
Rails 0.8: Just shy of 100 additions, changes, tweaks, and fixes!
...Ruby/StayingSimple.rdoc
[Builder is created by Jim Weirich]
* Added much improved support for functional testing [what-a-day].
# Old style
def test_failing_authenticate
@request.request_uri = "/login/authenticate"
@request.action = "authenticate"
@request.request_parameters["user_name"] = "nop"
@request.request_parameters["password"] = ""
response = LoginController.process_test(@request)
assert_equal "The username and/or password you entered is
invalid.", response.session["flash"]["...
2008 Jun 12
7
Problem uploading files (possibly an OS X issue?)
..._controller/
request.r
b:547:in `read_multipart''
/Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/
request.r
b:470:in `parse_multipart_form_parameters''
/Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/
request.r
b:400:in `parse_formatted_request_parameters''
/Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/
cgi_proce
ss.rb:80:in `request_parameters''
/Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/lib/action_controller/
request.r
b:304:in `parameters''
/Library/Ruby/Gems/1.8/gems/actionpack-2.1.0/...