aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/errors_controller.rb
diff options
context:
space:
mode:
authorRobert2017-04-21 10:51:46 +0200
committerRobert2017-04-21 10:51:46 +0200
commit65529adbba874600660dd7003459d38ef7e03904 (patch)
tree24f130eca95611f729e9ad65f4817f47743a88aa /app/controllers/errors_controller.rb
parentf590d7b18c7e980ce7e93e96ae3b45fce310675f (diff)
parent243bc28f745f9817fcd72b064aadd69d12a340e8 (diff)
downloadchouette-core-65529adbba874600660dd7003459d38ef7e03904.tar.bz2
Merge branch 'master' into with_custom_daterange_attr
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
+