remove redirect when render error page

This commit is contained in:
Alexander Machehin 2015-02-02 23:20:45 +05:00
parent cf39b3911c
commit fb438e3c75
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,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.all { redirect_to "/#{status}.html", alert: t("flash.#{status}_message") }
format.all { render "/#{status}.html", alert: t("flash.#{status}_message") }
end
end