public Method

Basic.authentication_request(controller, realm)

There's no documentation for this item.

Source Code

# File 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
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.