summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2014-07-31 08:53:08 +0200
committerAzul <azul@leap.se>2014-07-31 08:53:08 +0200
commit8529177baeb08b96f613148ebef0bf5861d897d1 (patch)
tree60c38a2ea626a37311d6ac5e043b6a04624906ed /app
parent3bd643e182e681a047768583b0c2eb2b34f45a2c (diff)
respond with 404 and 500 when rendering custom error pages
includes test
Diffstat (limited to 'app')
-rw-r--r--app/controllers/errors_controller.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/errors_controller.rb b/app/controllers/errors_controller.rb
index 6c659e6..d869ab5 100644
--- a/app/controllers/errors_controller.rb
+++ b/app/controllers/errors_controller.rb
@@ -2,9 +2,11 @@
class ErrorsController < ApplicationController
# 404
def not_found
+ render status: 404
end
# 500
def server_error
+ render status: 500
end
end