I want to test my rails web service using cURL, yet so far I could only do it while deactivating before_filter :authenticate_user!
. But I\'d like to log in a priori
This is because Rails by default adds an authenticity token to forms to protect from malicious forgery of submitted parameters. As you do not supply this token with your request, rails does not accept it. You can bypass this with
skip_before_filter :verify_authenticity_token
in your controller, where authorization takes place, better even to limit it to the authorization action with :only.