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

master
David Yip 7 years ago
parent 5083311d64
commit 70c99a9f34
No known key found for this signature in database
GPG Key ID: 7DA0036508FCC0CC
  1. 1
      app/controllers/application_controller.rb

@ -192,6 +192,7 @@ class ApplicationController < ActionController::Base
format.any { head code } format.any { head code }
format.html do format.html do
set_locale set_locale
use_pack 'error'
render "errors/#{code}", layout: 'error', status: code render "errors/#{code}", layout: 'error', status: code
end end
end end

Loading…
Cancel
Save