aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2011-03-28 18:15:41 -0700
committerDavid Heinemeier Hansson <david@loudthinking.com>2011-03-28 18:15:41 -0700
commit3d1e7c2645af6c187d5ab6d2a02bd1e7b9ad7af3 (patch)
treefb0604db2d2d4f53aaffc18307ffc88ae68a1ff0
parente2b07ee000439d0bd41f725ff9f7ad53e52a7e9b (diff)
downloadrails-3d1e7c2645af6c187d5ab6d2a02bd1e7b9ad7af3.tar.gz
rails-3d1e7c2645af6c187d5ab6d2a02bd1e7b9ad7af3.tar.bz2
rails-3d1e7c2645af6c187d5ab6d2a02bd1e7b9ad7af3.zip
Fix examples
-rw-r--r--actionpack/CHANGELOG2
-rw-r--r--actionpack/lib/action_controller/metal/http_authentication.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG
index 7f1e7d1c1d..6032c6b7da 100644
--- a/actionpack/CHANGELOG
+++ b/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!"
diff --git a/actionpack/lib/action_controller/metal/http_authentication.rb b/actionpack/lib/action_controller/metal/http_authentication.rb
index e28709d8cf..87c3239486 100644
--- a/actionpack/lib/action_controller/metal/http_authentication.rb
+++ b/actionpack/lib/action_controller/metal/http_authentication.rb
@@ -8,7 +8,7 @@ module ActionController
# === 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!"