Beste mensen,
Ik heb een vraag over authenticate bij ruby on rails. moet namelijk een blog maken. Mijn vraag is nu:
before_filter :authenticate, :except => [:index, :show]
private
def authenticate
authenticate_or_request_with_http_basic do |name, password|
name == "admin" && password == "secret"
wat doe ik precies fout? wat hoort ipv ''authenticate_or_request_with_http_basic'' te staan? Ik kom hier niet uit en ik zou jullie hulp op prijs stellen...
Groeten, cako
Ik heb een vraag over authenticate bij ruby on rails. moet namelijk een blog maken. Mijn vraag is nu:
before_filter :authenticate, :except => [:index, :show]
private
def authenticate
authenticate_or_request_with_http_basic do |name, password|
name == "admin" && password == "secret"
wat doe ik precies fout? wat hoort ipv ''authenticate_or_request_with_http_basic'' te staan? Ik kom hier niet uit en ik zou jullie hulp op prijs stellen...
Groeten, cako