Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 6700

Show
Ignore:
Timestamp:
05/08/07 06:09:14 (1 year ago)
Author:
david
Message:

Rendering is protected

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/lib/action_controller/http_authentication.rb

    r6699 r6700  
    114114      def authentication_request(controller, realm) 
    115115        controller.headers["WWW-Authenticate"] = %(Basic realm="#{realm.gsub(/"/, "")}") 
    116         controller.render :text => "HTTP Basic: Access denied.\n", :status => :unauthorized 
     116        controller.send :render, :text => "HTTP Basic: Access denied.\n", :status => :unauthorized 
    117117        return false     
    118118      end