私はここで何か間違ったことをしていると確信していますが、これは私のアプリケーションコントローラーがどのように見えるかです:
class ApplicationController < ActionController::API
include ActionController::HttpAuthentication::Basic
include ActionController::MimeResponds
http_basic_authenticate_with :name => "joeyjojo", :password => "shabadoo"
end
http_basic_authenticate_withがこのエラーをスローしている理由がわかりません。
undefined method `http_basic_authenticate_with' for ApplicationController:Class
簡単なことだと思いますが、わかりません。MimeRespondsは、他のコントローラーでも正常に機能しています。