aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/general_controller.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2013-05-02 10:29:39 +0100
committerLouise Crow <louise.crow@gmail.com>2013-05-02 13:29:30 +0100
commit106bbf1976406b9bb212944131758d797f516682 (patch)
tree3cf7a2f99c7c3c21ce3ae29aeb299fc1eb46a24c /app/controllers/general_controller.rb
parent6acce073443fbd700f346b1bf99ee72be3e4f387 (diff)
Handle routing errors with our custom template too.
Diffstat (limited to 'app/controllers/general_controller.rb')
-rw-r--r--app/controllers/general_controller.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/controllers/general_controller.rb b/app/controllers/general_controller.rb
index 0df685829..9d0f91dda 100644
--- a/app/controllers/general_controller.rb
+++ b/app/controllers/general_controller.rb
@@ -222,5 +222,11 @@ class GeneralController < ApplicationController
@locale = self.locale_from_params()
render(:layout => false, :content_type => 'text/css')
end
+
+ # Handle requests for non-existent URLs - will be handled by ApplicationController::render_exception
+ def not_found
+ raise RouteNotFound
+ end
+
end