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"