aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/errors_controller.rb
diff options
context:
space:
mode:
authorRobert2017-04-20 17:09:23 +0200
committerRobert2017-04-20 17:09:23 +0200
commit915e7209cb85ea41e76da6a1f026963fabc5eba0 (patch)
treeb39529be859098a9364510bcedbf6d27a3b61f7e /app/controllers/errors_controller.rb
parentd8172e2e36d874b72e2784bb92f273fe8457741e (diff)
parent59e923453231927d9aa46fbd22576475a3f3c0ee (diff)
downloadchouette-core-915e7209cb85ea41e76da6a1f026963fabc5eba0.tar.bz2
Merge branch 'master' of github.com:af83/stif-boiv
Diffstat (limited to 'app/controllers/errors_controller.rb')
-rw-r--r--app/controllers/errors_controller.rb11
1 files changed, 8 insertions, 3 deletions
diff --git a/app/controllers/errors_controller.rb b/app/controllers/errors_controller.rb
index c68a60804..accf119a3 100644
--- a/app/controllers/errors_controller.rb
+++ b/app/controllers/errors_controller.rb
@@ -1,9 +1,14 @@
class ErrorsController < ApplicationController
def not_found
- render :status => 404, :formats => [:html]
+ render template: 'errors/not_found', status: 404, formats: [:html]
end
def server_error
- render :status => 500, :formats => [:html]
+ render template: 'errors/server_error', status: 500, formats: [:html]
end
-end \ No newline at end of file
+
+ def not_allowed
+ render template: 'errors/not_found', status: 403, formats: [:html]
+ end
+end
+