title: Rails + Devise HTTP header token
body: <p>I have in my devise config the following line to enable token authentication in HTTP header:</p>
  
  <pre><code>config.http_authenticatable = [:token]
  </code></pre>
  
  <p>However, whenever I try to access a resource, I receive a 401 when running the following:</p>
  
  <pre><code>curl -v -H "Accept: application/json" -H "Content-type: application/json" -H "Authorization: Token token=\"c9G52z6n6LpGt5Ls6omW\"" http://localhost:3000/api/v1/objects/
  </code></pre>
  
  <p>As proof that the token is correct, the following works:</p>
  
  <pre><code>curl -v -H "Accept: application/json" -H "Content-type: application/json" http://localhost:3000/api/v1/objects?auth_token=c9G52z6n6LpGt5Ls6omW
  </code></pre>
  
  <p>Has anyone managed to get token authentication in HTTP header working? I can't find much information on it apart from:</p>
  
  <p><a href="http://api.rubyonrails.org/classes/ActionController/HttpAuthentication/Token.html" rel="nofollow">http://api.rubyonrails.org/classes/ActionController/HttpAuthentication/Token.html</a>
  <a href="https://groups.google.com/forum/#!topic/plataformatec-devise/o3Gqgl0yUZo" rel="nofollow">https://groups.google.com/forum/#!topic/plataformatec-devise/o3Gqgl0yUZo</a></p>