fix js bugs
This commit is contained in:
@@ -128,7 +128,7 @@ class ApplicationController < ActionController::Base
|
||||
def authentication_failed
|
||||
respond_to do |fmt|
|
||||
fmt.html do
|
||||
render :text => "authentication failed", :status => 401
|
||||
render :plain => "authentication failed", :status => 401
|
||||
end
|
||||
|
||||
fmt.xml do
|
||||
|
||||
@@ -44,7 +44,7 @@ class LegacyController < ApplicationController
|
||||
end
|
||||
|
||||
def unavailable
|
||||
render :text => "this resource is no longer available", :status => 410
|
||||
render :plain => "this resource is no longer available", :status => 410
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
@@ -9,7 +9,7 @@ class StaticController < ApplicationController
|
||||
end
|
||||
|
||||
def not_found
|
||||
render text: "not found", status: :not_found
|
||||
render plain: "not found", status: :not_found
|
||||
end
|
||||
|
||||
def error
|
||||
|
||||
Reference in New Issue
Block a user