Fix examples
This commit is contained in:
parent
e2b07ee000
commit
3d1e7c2645
@ -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!"
|
||||
|
Loading…
Reference in New Issue
Block a user