search for: env_tabl

Displaying 12 results from an estimated 12 matches for "env_tabl".

Did you mean: env_table
2006 Jan 14
1
BUG: HTTP body content get parsed in PUT call
...key1=value1'' From action_controller/cgi_ext/raw_post_data_fix.rb, the PUT method is handled the same way as POST, which would have the content body parsed for params. So, I made a patch by redefining CGI::QueryExtension#read_query_params Note that I have to put the body content into env_table[''RAW_PUT_DATA''] instead of env_table[''RAW_POST_DATA'']. The latter will have the same problem. class CGI #:nodoc: module QueryExtension private def setup_raw_put_data stdinput.binmode if stdinput.respond_to?(:binmode) c...
2010 Jul 21
0
cgi_process.rb:22:in `__send__': undefined method `env_table
..../dispatch.rb ./../config/environment.rb:35: warning: already initialized constant MONTHNAMES ./../config/environment.rb:36: warning: already initialized constant DAYNAMES /home/mirumb5/ruby/gems/gems/actionpack-2.3.4/lib/action_controller/cgi_process.rb:22:in `__send__'': undefined method `env_table'' for nil:NilClass (NoMethodError) from /home/mirumb5/ruby/gems/gems/actionpack-2.3.4/lib/action_controller/cgi_process.rb:22:in `dispatch_cgi'' from /home/mirumb5/ruby/gems/gems/actionpack-2.3.4/lib/action_controller/dispatcher.rb:101:in `dispatch_cgi''...
2006 Jul 06
6
Problem with gettext and functional tests
...ontroller::TestRequest:0xb77f7f88>. All right, TestRequest doesn''t have a cgi method. Therefore I just included this into test_helper.rb: ActionController::TestRequest.send(:include, CGI::QueryExtension). Now the error message changes to: NameError: undefined local variable or method `env_table'' for #<ActionController::TestRequest:0xb7785848>. Great, but then there isn''t a module left (the cgi class is the only construct, which implements it), which I could use to include env_table; and I really don''t want to start cgi hacking... How should I solve this...
2005 Jul 14
2
SSL certificate access with Apache2/fastcgi
...t;fake basic authentication using certificate data" because I need to keep an existing API that already uses basic authentication for a separate part of the authentication puzzle. I''ve seen suggestions that the CGI environment variables should be mirrored in @request or in @cgi.env_table, but I can''t see anything useful in either of these. Help? Scott
2006 Jan 10
9
FastCGI cannot start; Rails doesn''t work
...cript .fcgi </IfModule> ###### The testscript i want to execute is the following: #!/usr/local/bin/ruby require ''cgi'' require ''rubygems'' require_gem ''fcgi'' FCGI.each_cgi do |cgi| content = '''' env = [] cgi.env_table.each do |k,v| env << [k,v] end env.sort! env.each do |k,v| content << %Q(#{k} => #{v}<br>\n) end cgi.out{content} end ####### The errors i get in apache''s error_log are: [Tue Jan 10 16:55:14 2006] [notice] Apache/2.0.55 (Unix) mod_...
2006 Feb 14
0
[REQUIREMENTS] Macromedia Flash View for Rails Controller
...les similar to what you might find in a rails view and make those variables present in my Flash Object. Here is what I have so far: rails calls a macromedia flash method ''render_action'' and passes these properties: data ={ flash:, { warning:,error:,notice: }, env_table, { the env_table from the @controller}, controller:, action:, content_for_layout: {user supplied hash of page objects} params: {other attributes like id etc.} } This object is serialized by json and passed down to flash OK. Do you think this is en...
2007 Jan 17
8
can i force a favicon.ico ?
lo there all, i am running two websites on one server. Both use the same code and both domains point to the same public folder. I use different logos by using a session variable called session[:domain] that i find with env_table[''HTTP_HOST''] so anyway, both need a different icon to go in the bookmarks and url, i know this is done with a favicon.ico, but can i force the server to use one for one domain and a different one for the other domain ? if so, how ? thanks -- Posted via http://www.ruby-forum....
2006 Jul 31
4
switching database dynamically based on incoming request
...ically switch the database based on user request. request.env appears to pick up environment variables set up the Apache SetEnv directive, and I''ve been trying to work out how this happens in actionpack, but experiments like the following: <% cgi = CGI.new %> <%= debug cgi.send(:env_table)%> appear to produce access to ENV, i.e. only the global variables, and not the specific ones to the current virtual host request. I would be very grateful for any input on how to resolve this problem, or any information that might help me better understand the difference between ENV and requ...
2007 Aug 21
2
ActionPack raw_post_data_fix.rb#read_body bug with AMF data.
...runcated in the Rails plugin. This is the cause of it. So can a condition be put in the method so that if the content-type is "application/x-amf" that it doesn''t "chop" the data. I''ve changed the method to this and it fixes the problem: --snip content_type = env_table[''CONTENT_TYPE''] if content[-1] == 0 && content_type != ''application/x-amf'' content.chop! if content[-1] == 0 end --snip I can talk with whomever is developing actionpack to give you a supporting test cast and how to see what happens with AMF. I would...
2007 Jan 26
0
Problems with assert_select in integration tests
...oybQ@public.gmane.org"}, "flash"=>{}}, @dbprot=[], @dbman=#<CGI::Session::ActiveRecordStore:0x246d004 @session=nil>, @new_session=false>, @cgi=#<ActionController::Integration::Session::MockCGI:0x24772fc @output_cookies=[["d0060c4ee33f3d58c0ef83bbfa107b6f"]], @env_table={"CONTENT_LENGTH"=>nil, "HTTP_HOST"=>"www.example.com", "REMOTE_ADDR"=>"127.0.0.1", "CONTENT_TYPE"=>"application/x-www-form-urlencoded", "HTTPS"=>"off", "HTTP_COOKIE"=>"_sessi...
2005 Dec 15
11
CGI Module in Rails
I''m trying to use the CGI module to generate the html in a view but am having trouble. My controller looks like: class MyTestController < ApplicationController def cgitest require ''cgi'' @cgi=CGI.new("html3") end end My cgitest.rhtml view document simply has: <%= @cgi.out{@cgi.html{@cgi.head{}}} %> Loading MyTest/cgitest, Rails tells me that
2006 May 17
3
Rails "Application Error" with apache and mod_fcgid
...by/site_ruby/1.8/fcgi.rb:593 - undefined method `is_cgi?'' for FCGI:Class (eval):3: warning: redefine remove_params (eval):13: warning: method redefined; discarding old initialize (eval):19: warning: method redefined; discarding old args (eval):22: warning: method redefined; discarding old env_table (eval):25: warning: method redefined; discarding old stdinput (eval):28: warning: method redefined; discarding old stdoutput Exception `NoMethodError'' at /usr/lib/ruby/site_ruby/1.8/fcgi.rb:593 - undefined method `is_cgi?'' for FCGI:Class linuxserver public # </fieldset> I...