Skip to content
Browse files

Fix examples

  • Loading branch information...
1 parent e2b07ee commit 3d1e7c2645af6c187d5ab6d2a02bd1e7b9ad7af3 @dhh dhh committed Mar 28, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 actionpack/CHANGELOG
  2. +1 −1 actionpack/lib/action_controller/metal/http_authentication.rb
View
2 actionpack/CHANGELOG
@@ -26,7 +26,7 @@
..can now be written as
class PostsController < ApplicationController
- http_basic_authenticate_with :name => "dhh", "secret", :except => :index
+ http_basic_authenticate_with :name => "dhh", :password => "secret", :except => :index
def index
render :text => "Everyone can see me!"
View
2 actionpack/lib/action_controller/metal/http_authentication.rb
@@ -8,7 +8,7 @@ module HttpAuthentication
# === Simple \Basic example
#
# class PostsController < ApplicationController
- # http_basic_authenticate_with :name => "dhh", "secret", :except => :index
+ # http_basic_authenticate_with :name => "dhh", :password => "secret", :except => :index
#
# def index
# render :text => "Everyone can see me!"

0 comments on commit 3d1e7c2

Please sign in to comment.
Something went wrong with that request. Please try again.