aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source
diff options
context:
space:
mode:
Diffstat (limited to 'railties/guides/source')
-rw-r--r--railties/guides/source/action_controller_overview.textile2
-rw-r--r--railties/guides/source/getting_started.textile4
2 files changed, 3 insertions, 3 deletions
diff --git a/railties/guides/source/action_controller_overview.textile b/railties/guides/source/action_controller_overview.textile
index 9dffdce8de..496dc7224b 100644
--- a/railties/guides/source/action_controller_overview.textile
+++ b/railties/guides/source/action_controller_overview.textile
@@ -619,7 +619,7 @@ HTTP basic authentication is an authentication scheme that is supported by the m
<ruby>
class AdminController < ApplicationController
- http_basic_authenticate_with :name => "humbaba", "5baa61e4"
+ http_basic_authenticate_with :name => "humbaba", :password => "5baa61e4"
end
</ruby>
diff --git a/railties/guides/source/getting_started.textile b/railties/guides/source/getting_started.textile
index 0bc2d9144e..1122a4b9e3 100644
--- a/railties/guides/source/getting_started.textile
+++ b/railties/guides/source/getting_started.textile
@@ -1210,7 +1210,7 @@ To use the authentication system, we specify it at the top of our +PostsControll
<ruby>
class PostsController < ApplicationController
- http_basic_authenticate_with :name => "dhh", "secret", :except => :index
+ http_basic_authenticate_with :name => "dhh", :password => "secret", :except => :index
# GET /posts
# GET /posts.xml
@@ -1225,7 +1225,7 @@ We also only want to allow authenticated users to delete comments, so in the +Co
<ruby>
class CommentsController < ApplicationController
- http_basic_authenticate_with :name => "dhh", "secret", :only => :destroy
+ http_basic_authenticate_with :name => "dhh", :password => "secret", :only => :destroy
def create
@post = Post.find(params[:post_id])