Use error pack when rendering error pages. Fixes #305.

This commit is contained in:
David Yip 2018-01-07 13:30:17 -06:00
parent 5083311d64
commit 70c99a9f34
No known key found for this signature in database
GPG key ID: 7DA0036508FCC0CC

View file

@ -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