title: Completed 406 Not Acceptable in devise
body: <p>I am integrating ios app with rails server. 
  Here, I have implemented devise authentication.
  when a new person is signing up from my app, I get the following error in my logs</p>
  
  <pre><code>Processing by Devise::RegistrationsController#create as JSON
  Parameters: {"password_confirmation"=&gt;"[FILTERED]", "email"=&gt;"sss@example.com", "password"=&gt;"[FILTERED]", "registration"=&gt;{"password_confirmation"=&gt;"[FILTERED]", "email"=&gt;"sss@example.com", "password"=&gt;"[FILTERED]"}}
  WARNING: Can't verify CSRF token authenticity
  (0.1ms)  begin transaction
  (0.0ms)  rollback transaction
  Completed 406 Not Acceptable in 28ms (ActiveRecord: 0.7ms)
  </code></pre>