私はいくつかの奇妙な問題を抱えています:私が実行した場合
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
。どこが間違っていますか?