我有一些奇怪的问题:如果我跑
class ApplicationController < ActionController::Base
http_basic_authenticate_with name: "test", password: "test"
它工作正常。但是如果我把这个
before_filter authenticate_incoming
def authenticate_incoming
http_basic_authenticate_with name: "hi", password: "ho"
end
我明白了undefined method http_basic_authenticate_with
。我哪里错了?