Use only the HTML format during rendering of error responses
This commit is contained in:
parent
499758edc4
commit
b4ce8c31cc
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue