Displaying 6 results from an estimated 6 matches for "cgiresponse".
2007 May 19
1
Is there any documents about CGIResponse?
I set response.body with some string, in controller''s index, but it
seems did nothing....
Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this
2006 Apr 04
1
integration tests - 1.1
..."])
end
The last two lines don?t work? I can see REQUEST_URL in the @attributes
of the response and it contains the correct uri
("/datafeed/event/report?blah=blah"), but I can?t figure out how to
access it. I also haven?t been able to locate the source code for the
response (CgiResponse). Can someone point me in the right direction?
Thanks,
phil
--
Posted via http://www.ruby-forum.com/.
2006 Feb 07
0
Re: odd http header corruption
Hi,
So more information on the header corruption.
I tried adding a slice! instruction to remove the offending part of the
http headers. Rails ActionController::CgiResponse normally uses the
following:
output.write(@cgi.header(@headers))
which I replaced with:
headers = @cgi.header(@headers)
headers.slice!(/#<#<(C|c)lass: 0x[\w\d]*>:0x[\w\d]*>/)
output.write(headers)
testing that my regex really did match the offending string.
However, this addition d...
2006 Jul 21
3
Help me run rails on apache on Linux Fedora
...nts in
the code, printing interesting things and following along to
see what was blowing up. I followed it to:
/usr/lib/ruby/gems/1.8/gems/rails-1.1.4/lib/dispatcher.rb
And in particular the the lines:
request, response = ActionController::CgiRequest.new(cgi, session_options), ActionController::CgiResponse.new(cgi)
prepare_application
ActionController::Routing::Routes.recognize!(request).process(request, response).out(output)
It seems that both request and response are nil, at least I get I 500 error
if I try to access them in some way.
Any help would be appreciated, I have spent about 3 days on th...
2007 Jan 26
0
Problems with assert_select in integration tests
...eation''
/Users/nielsene/ruby-work/compinabox/config/../vendor/rails/actionpack/lib/action_controller/integration.rb:453:in
`run'']:
Expected at least 1 elements, found 0.
<false> is not true.
And here is an except from "puts response.inspect"
#<ActionController::CgiResponse:0x247432c @redirected_to=nil,
@headers={"Status"=>"200 OK", "type"=>"text/html; charset=utf-8",
"cookie"=>[], "Cache-Control"=>"no-cache", "Content-Length"=>2247},
@session=#<CGI::Session:0x246e2b0
@se...
2005 Dec 30
6
Unable to get the domain in my routes.rb to map custom route tables per domain
I have tried all night trying to find a way to get the host name which is
currently being used within my routes.rb file to do some case/when switching
for specific domains such as this
cgi = ActionController::CgiRequest.new(CGI.new)
case cgi.domain(1)
when /www/
map.connect '''', :controller => ''public'', :action =>
''index''
when