我正在使用rails-api并需要使用 authenticate_with_http_token 来处理标头授权令牌,但是我收到以下错误:
authenticate_with_http_token
NoMethodError (undefined method `authenticate_with_http_token' for ...)
将以下内容添加到 ApplicationController
ApplicationController
include ActionController::HttpAuthentication::Token::ControllerMethods
1 回答
将以下内容添加到
ApplicationController