summaryrefslogtreecommitdiff
path: root/app/controllers/errors_controller.rb
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2017-02-26 13:21:30 -0700
committermo khan <mo@mokhan.ca>2017-02-26 13:21:30 -0700
commitd6c9788771f7dcbd96408130bc4e10e6497bee60 (patch)
tree1a511d58856b2792b0ccb782a06df7a4e2663c21 /app/controllers/errors_controller.rb
parent5780e2d66fa27dd40bf5d3b581c68285c3199213 (diff)
add custom error pages.
Diffstat (limited to 'app/controllers/errors_controller.rb')
-rw-r--r--app/controllers/errors_controller.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/controllers/errors_controller.rb b/app/controllers/errors_controller.rb
new file mode 100644
index 0000000..d6eabf5
--- /dev/null
+++ b/app/controllers/errors_controller.rb
@@ -0,0 +1,8 @@
+class ErrorsController < PublicController
+ include Gaffe::Errors
+ layout "public"
+
+ def show
+ render @rescue_response, status: @status_code
+ end
+end