From 8529177baeb08b96f613148ebef0bf5861d897d1 Mon Sep 17 00:00:00 2001 From: Azul Date: Thu, 31 Jul 2014 08:53:08 +0200 Subject: respond with 404 and 500 when rendering custom error pages includes test --- app/controllers/errors_controller.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app') diff --git a/app/controllers/errors_controller.rb b/app/controllers/errors_controller.rb index 6c659e6..d869ab5 100644 --- a/app/controllers/errors_controller.rb +++ b/app/controllers/errors_controller.rb @@ -2,9 +2,11 @@ class ErrorsController < ApplicationController # 404 def not_found + render status: 404 end # 500 def server_error + render status: 500 end end -- cgit v1.2.3