Hi,
As you already know I'm working on turning my Camping app
into production. Unfortunatelly I find lots of problems on my way.
The next one is here:
My Camping app does something dirty on the 'redirect CtrllerName'
lines. The webserver serves https requests, and before I placed
fastcgi_param HTTPS on;
which passes these two params to the fastcgi application:
"HTTPS"=>"on",
"rack.url_scheme"=>"https",
But my app fails on the first redirect line in my controllers:
(eval):10:in `URL': undefined method `+' for nil:NilClass (NoMethodError)
from (eval):15:in `redirect'
from /home/bsanyi/MyApp.rb:53:in `post'
from (eval):24:in `send'
from (eval):24:in `service'
from (eval):24:in `catch'
from (eval):24:in `service'
from (eval):34:in `call'
from /usr/lib/ruby/1.8/rack/session/cookie.rb:37:in `call'
from (eval):38:in `call'
from /usr/lib/ruby/1.8/rack/content_length.rb:13:in `call'
from /usr/lib/ruby/1.8/rack/handler/fastcgi.rb:57:in `serve'
from /usr/lib/ruby/1.8/rack/handler/fastcgi.rb:25:in `run'
from /usr/lib/ruby/1.8/rack/handler/fastcgi.rb:24:in `each'
from /usr/lib/ruby/1.8/rack/handler/fastcgi.rb:24:in `run'
MyApp.rb:53 is a `redirect ControllerName` line. What do I wrong?
Redirects are working with different Rack handlers than FascCGI.
And I'm sure it is related to the https, because before I switched
HTTPS on in my webserver, redirect worked, but to http (not https)
and port 443 - which was of course a wrong combination. Now
Rack know about https, and my app seems to work until the first
redirect.
The same happens in ruby1.8 + ubuntu packages of rack and camping
(and other necessary libs), and with ruby1.9.2 and the latest gems.
The above error message is from 1.8.
uzlee
_______________________________________________
Camping-list mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/camping-list