summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/application.rb1
-rw-r--r--config/routes.rb4
2 files changed, 5 insertions, 0 deletions
diff --git a/config/application.rb b/config/application.rb
index 1077198..8555f48 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -92,6 +92,7 @@ module LeapWeb
##
config.paths['app/views'].unshift "config/customization/views"
+ # handle http errors ourselves
config.exceptions_app = self.routes
end
end
diff --git a/config/routes.rb b/config/routes.rb
index f92c704..9e0b72d 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -6,6 +6,10 @@ 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'