search for: https_protocol

Displaying 1 result from an estimated 1 matches for "https_protocol".

Did you mean: http_protocol
2008 Sep 23
5
Problem getting Rails to emit the correct (proxy) domain in route urls
...r is running Apache 2.0 or I''d do the proxy balancing there. I assure you that getting the proxying, the subfolder, and various necessary transitions between HTTP and HTTPS working is collectively no fun at all. But I''m writing about a particular problem: In my routes I have HTTPS_PROTOCOL = (Rails.env.production? || Rails.env.test?) ? "https" : "http" map.with_options :protocol => HTTPS_PROTOCOL do map.resource :session, :requirements => {:protocol => HTTPS_PROTOCOL} map.logout ''/logout'', :controller => ''...