diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 9415dd39..9a733c37 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -182,7 +182,10 @@ def not_on_achievements? end def render_404 - render template: 'errors/not_found', status: :not_found + respond_to do |format| + format.any(:html, :json, :xml) { render 'errors/not_found', status: :not_found } + format.all { render text: "Not Found", :content_type => Mime::TEXT, status: :not_found } + end end def render_500