diff options
author | azul <azul@riseup.net> | 2017-03-20 08:06:39 +0000 |
---|---|---|
committer | azul <azul@riseup.net> | 2017-03-20 08:06:39 +0000 |
commit | d7990f1b2af378ad071db6d94c5f95a50d6b7dcd (patch) | |
tree | 40726ee4b23d0de6f081cf4f87209d279b453704 /config | |
parent | b9d64784165d6fa0af305a7403ff70f5ca4f398b (diff) | |
parent | 74eb83587dd9c2e566e053cc0d33bb7aff517f01 (diff) |
Merge branch 'bugfix/require-html-for-home-routes' into 'master'
bugfix: format: html for home roots
See merge request !17
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/config/routes.rb b/config/routes.rb index d388ab7..de328db 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -3,8 +3,11 @@ LeapWeb::Application.routes.draw do # Please do not use root_path or root_url. Use home_path and home_url instead, # so that the path will be correctly prefixed with the locale. # - root :to => "home#index" - get '(:locale)' => 'home#index', :locale => CommonLanguages.match_available, :as => 'home' + + scope format: 'html' do + root :to => "home#index" + get '(:locale)' => 'home#index', :locale => CommonLanguages.match_available, :as => 'home' + end # # HTTP Error Handling |