From 7f39986b99424d69420635b0972c6d32bce791aa Mon Sep 17 00:00:00 2001 From: Alexander Machehin Date: Wed, 26 Mar 2014 14:55:29 +0600 Subject: [PATCH] [#345] fix error with ActionController::UnknownFormat for .patch and .diff --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 7df3ee50d..e92eae50e 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -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