[abf/abf-ideas#155] remove redirect when rendering error pages
This commit is contained in:
parent
56fb9016ab
commit
c583e6bcef
|
@ -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 { render "/#{status}.html", alert: t("flash.#{status}_message") }
|
||||
format.all { render file: "public/#{status}.html", alert: t("flash.#{status}_message"), layout: false }
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue