about summary refs log tree commit diff
path: root/app/controllers
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-01-21 22:30:47 +0100
committerEugen Rochko <eugen@zeonfederated.com>2017-01-21 22:30:47 +0100
commite22a56183a26283941a3260341ef84ce03e8ba44 (patch)
tree90207264b8f460a3ede23b0b50fbe655c5a0f1c9 /app/controllers
parentb4a4eb73ae3a80c87a643967fb2aeffe1d1a11ea (diff)
Improve error page layouting. 500 page has to stay static because it's
used from nginx when Rails fails.
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/application_controller.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index e8cd48b6e..e4b6d0faf 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -51,21 +51,21 @@ class ApplicationController < ActionController::Base
   def not_found
     respond_to do |format|
       format.any  { head 404 }
-      format.html { render "errors/404" }
+      format.html { render 'errors/404', layout: 'error' }
     end
   end
 
   def gone
     respond_to do |format|
       format.any  { head 410 }
-      format.html { render "errors/410" }
+      format.html { render 'errors/410', layout: 'error' }
     end
   end
 
   def unprocessable_entity
     respond_to do |format|
       format.any  { head 422 }
-      format.html { render "errors/422" }
+      format.html { render 'errors/422', layout: 'error' }
     end
   end