From 03b38c25991b165b34eef78673c757c18fc0eb41 Mon Sep 17 00:00:00 2001 From: joshua stein Date: Tue, 3 Jul 2012 14:50:52 -0500 Subject: [PATCH] https only for production --- config/routes.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index 5bc18b5..4b14f9e 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,5 +1,6 @@ Lobsters::Application.routes.draw do - root :to => "home#index", :protocol => "https://" + root :to => "home#index", + :protocol => (Rails.env == "production" ? "https://" : "http://") get "/newest(.format)" => "home#newest"