[#345] fix error with ActionController::UnknownFormat for .patch and .diff
This commit is contained in:
parent
ed1f6764fa
commit
7f39986b99
|
@ -48,7 +48,7 @@ class ApplicationController < ActionController::Base
|
|||
def render_error(status)
|
||||
respond_to do |format|
|
||||
format.json { render json: {status: status, message: t("flash.#{status}_message")}.to_json, status: status }
|
||||
format.html { redirect_to "/#{status}.html", alert: t("flash.#{status}_message") }
|
||||
format.all { redirect_to "/#{status}.html", alert: t("flash.#{status}_message") }
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue