summaryrefslogtreecommitdiff
path: root/config/routes.rb
diff options
context:
space:
mode:
authorazul <azul@leap.se>2014-05-22 14:48:40 +0200
committerazul <azul@leap.se>2014-05-22 14:48:40 +0200
commit0c995deeb434237aa71e3a45f9f5a51f7c79116a (patch)
treed2988d37c9d3bdb02d9e0b36eb1bc61ca0782f1f /config/routes.rb
parentb9174fdc9d9bd403d9a16650bafc4715e3dbf2d4 (diff)
parentb298cea527f74f682d24defee360e0f45f47d125 (diff)
Merge pull request #162 from azul/feature/3295-custom-error-pages
Feature/3295 custom error pages
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 745b97d..9e0b72d 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -6,6 +6,13 @@ LeapWeb::Application.routes.draw do
root :to => "home#index"
get '(:locale)' => 'home#index', :locale => MATCH_LOCALE, :as => 'home'
+ #
+ # HTTP Error Handling
+ # instead of the default error pages use the errors controller and views
+ #
+ match '/404' => 'errors#not_found'
+ match '/500' => 'errors#server_error'
+
scope "(:locale)", :locale => MATCH_LOCALE, :controller => 'pages', :action => 'show' do
get 'privacy-policy', :as => 'privacy_policy'
get 'terms-of-service', :as => 'terms_of_service'