I am using rails-api and need to use authenticate_with_http_token to process a header authorization token, but i get the following error:
authenticate_with_http_token
NoMethodError (undefined method `authenticate_with_http_token' for ...)
Add the following to ApplicationController
ApplicationController
include ActionController::HttpAuthentication::Token::ControllerMethods