Fix examples

This commit is contained in:
David Heinemeier Hansson 2011-03-28 18:15:41 -07:00
parent e2b07ee000
commit 3d1e7c2645
2 changed files with 2 additions and 2 deletions

@ -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!"

@ -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!"