method
authentication_request

authentication_request(controller, realm)
public
Hide source
# File actionpack/lib/action_controller/http_authentication.rb, line 118 def authentication_request(controller, realm) controller.headers["WWW-Authenticate"] = %(Basic realm="#{realm.gsub(/"/, "")}") controller.send! :render, :text => "HTTP Basic: Access denied.\n", :status => :unauthorized end