[abf/abf-ideas#155] remove redirect when rendering error pages

This commit is contained in:
Alexander Machehin 2015-02-02 23:37:55 +05:00
parent 56fb9016ab
commit c583e6bcef
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 { render "/#{status}.html", alert: t("flash.#{status}_message") }
format.all { render file: "public/#{status}.html", alert: t("flash.#{status}_message"), layout: false }
end
end