I am using Devise with a javascript MVC framework (backbone). After collecting the form values for registration, I submitted them to the
users.json url. However, I got a 422 Unprocessable Entity error from the Devise registrations controller. does anyone know why this might be?
Processing by Devise::RegistrationsController#create as JSON
Parameters: {"email"=>"
o...@gmail.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "registration"=>{"email"=>"
o...@gmail.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}
(0.1ms) begin transaction
(0.1ms) rollback transaction
Completed 422 Unprocessable Entity in 38ms (Views: 0.3ms | ActiveRecord: 0.6ms)
Note, the more recent releases of Devise don't respond with JSON, so I'm using Devise 2.1.2