parent
bd87e66679
commit
bd1545de5e
4 changed files with 17 additions and 21 deletions
|
@ -138,11 +138,7 @@ class ApplicationController < ActionController::Base
|
|||
def respond_with_error(code)
|
||||
respond_to do |format|
|
||||
format.any { head code }
|
||||
|
||||
format.html do
|
||||
set_locale
|
||||
render "errors/#{code}", layout: 'error', status: code
|
||||
end
|
||||
format.html { render "errors/#{code}", layout: 'error', status: code }
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue