Use only the HTML format during rendering of error responses

This commit is contained in:
Patrick Gansterer 2017-10-10 19:36:43 +02:00
parent 499758edc4
commit b4ce8c31cc

View file

@ -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