remove redirect when render error page
This commit is contained in:
parent
cf39b3911c
commit
fb438e3c75
|
@ -81,7 +81,7 @@ class ApplicationController < ActionController::Base
|
||||||
def render_error(status)
|
def render_error(status)
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.json { render json: {status: status, message: t("flash.#{status}_message")}.to_json, status: status }
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue