use https for the root route according to config.force_ssl
This commit is contained in:
parent
9e8b89be1c
commit
b0b9654a29
|
@ -1,7 +1,7 @@
|
||||||
Lobsters::Application.routes.draw do
|
Lobsters::Application.routes.draw do
|
||||||
scope :format => "html" do
|
scope :format => "html" do
|
||||||
root :to => "home#index",
|
root :to => "home#index",
|
||||||
:protocol => (Rails.env == "production" ? "https://" : "http://"),
|
:protocol => (Rails.application.config.force_ssl ? "https://" : "http://"),
|
||||||
:as => "root"
|
:as => "root"
|
||||||
|
|
||||||
get "/rss" => "home#index", :format => "rss"
|
get "/rss" => "home#index", :format => "rss"
|
||||||
|
|
Loading…
Reference in a new issue