diff options
author | David Yip <yipdw@member.fsf.org> | 2018-01-07 13:30:17 -0600 |
---|---|---|
committer | David Yip <yipdw@member.fsf.org> | 2018-01-07 13:30:17 -0600 |
commit | 70c99a9f34b645baa65982dfec5351869c1924fe (patch) | |
tree | 20d287b50441a55df3bf40faffb40df8a1c7bf18 /app | |
parent | 5083311d64f427771609e444b87c0c39cb6f8ac2 (diff) |
Use error pack when rendering error pages. Fixes #305.
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/application_controller.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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 |