On Tue, Oct 11, 2011 at 09:02, Nokan Emiro <[email protected]> wrote:
> 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'
Could you run `pp @env` inside the controller and paste the result
here? (or in a pastie.org)
require 'pp'
module MyApp::Controllers
class InTheControllerThatFails
def post
pp @env
redirect BlaBla
end
end
end
_______________________________________________
Camping-list mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/camping-list