From 70c99a9f34b645baa65982dfec5351869c1924fe Mon Sep 17 00:00:00 2001 From: David Yip Date: Sun, 7 Jan 2018 13:30:17 -0600 Subject: [PATCH] Use error pack when rendering error pages. Fixes #305. --- app/controllers/application_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index f3d8f69663..f997e9569f 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -192,6 +192,7 @@ class ApplicationController < ActionController::Base format.any { head code } format.html do set_locale + use_pack 'error' render "errors/#{code}", layout: 'error', status: code end end