diff options
author | Sebastian Martinez <sebastian@wyeworks.com> | 2011-03-28 22:49:43 -0300 |
---|---|---|
committer | Sebastian Martinez <sebastian@wyeworks.com> | 2011-03-28 22:49:43 -0300 |
commit | 54af8dfbfc4122494235d817cd98b83874241215 (patch) | |
tree | b807b51a1d1d2c67bd5695eb114472c500fcbe1e /railties | |
parent | 70779a08a0bec1b890c1b7d77114dedc7f1b69e2 (diff) | |
download | rails-54af8dfbfc4122494235d817cd98b83874241215.tar.gz rails-54af8dfbfc4122494235d817cd98b83874241215.tar.bz2 rails-54af8dfbfc4122494235d817cd98b83874241215.zip |
Fix Basic Authentication examples
Diffstat (limited to 'railties')
-rw-r--r-- | railties/guides/source/action_controller_overview.textile | 2 | ||||
-rw-r--r-- | railties/guides/source/getting_started.textile | 4 |
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]) |