From d6c9788771f7dcbd96408130bc4e10e6497bee60 Mon Sep 17 00:00:00 2001 From: mo khan Date: Sun, 26 Feb 2017 13:21:30 -0700 Subject: add custom error pages. --- app/controllers/errors_controller.rb | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 app/controllers/errors_controller.rb (limited to 'app/controllers/errors_controller.rb') 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 -- cgit v1.2.3