From b4ce8c31ccec79ffc77ebb280e6010e3b9e59c3d Mon Sep 17 00:00:00 2001 From: Patrick Gansterer Date: Tue, 10 Oct 2017 19:36:43 +0200 Subject: [PATCH] Use only the HTML format during rendering of error responses --- app/controllers/errors_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/errors_controller.rb b/app/controllers/errors_controller.rb index 4ffeeae8..15d11726 100644 --- a/app/controllers/errors_controller.rb +++ b/app/controllers/errors_controller.rb @@ -6,7 +6,7 @@ class ErrorsController < ApplicationController layout :current_layout def show - render "errors/#{@rescue_response}", status: @status_code + render "errors/#{@rescue_response}", formats: :html, status: @status_code end private