From: David Yip Date: Sun, 7 Jan 2018 19:30:17 +0000 (-0600) Subject: Use error pack when rendering error pages. Fixes #305. X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=70c99a9f34b645baa65982dfec5351869c1924fe;p=mastodon.git Use error pack when rendering error pages. Fixes #305. --- diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index f3d8f6966..f997e9569 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