Displaying 1 result from an estimated 1 matches for "must_authenticate".
2007 Dec 12
1
why is authenticate_with_http_basic undefined?
...authenticate_with_http_basic do |user, pass|
@authenticated_user = User.authenticate(user, pass)
end
return true
end
#Filter for actions that _require_ authentication. Unless client
authenticated
# as some user, takes over the request and sends a response code of
401.
def must_authenticate
if @authenticated_user && (@user_is_viewing_themselves != false)
return true
else
request_http_basic_authentication
return false
end
end
I get a NOMETHODERROR
undefined method `request_http_basic_authentication'' for
#<OrdersController:0x478cc5c&...