aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/errors_controller.rb
diff options
context:
space:
mode:
authorVlatka Pavisic2017-04-25 14:10:37 +0200
committerVlatka Pavisic2017-04-25 14:10:45 +0200
commitd6d5884aed86156735cb1727f66d229664b675fd (patch)
treefa79160674cabcb19d2c918202d8d311f841e684 /app/controllers/errors_controller.rb
parentcf73ce3becb8670524975e5561a498cae620017f (diff)
downloadchouette-core-d6d5884aed86156735cb1727f66d229664b675fd.tar.bz2
Refs #3033 : 403 page and ErrorsController tests
Diffstat (limited to 'app/controllers/errors_controller.rb')
-rw-r--r--app/controllers/errors_controller.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/errors_controller.rb b/app/controllers/errors_controller.rb
index accf119a3..94e0d7b4c 100644
--- a/app/controllers/errors_controller.rb
+++ b/app/controllers/errors_controller.rb
@@ -1,14 +1,14 @@
class ErrorsController < ApplicationController
def not_found
- render template: 'errors/not_found', status: 404, formats: [:html]
+ render status: 404
end
def server_error
- render template: 'errors/server_error', status: 500, formats: [:html]
+ render status: 500
end
def not_allowed
- render template: 'errors/not_found', status: 403, formats: [:html]
+ render status: 403
end
end