[#345] fix error with ActionController::UnknownFormat for .patch and .diff

This commit is contained in:
Alexander Machehin 2014-03-26 14:55:29 +06:00
parent ed1f6764fa
commit 7f39986b99
1 changed files with 1 additions and 1 deletions

View File

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