adelevie/parse_resource — Issue #2: Receive bad Request when creating new User in Rails 3
Author: saigonaut
Created: 2011-12-17 07:28:03+00:00
State: open

Hi Alan,

First of all many thanks for all your contribution with this gem it is very helpfull for us!!!

In my Rails 3 app, I'm trying to create a User (ParseUser) but received a 400 Bad Request (trace below)
Therefore, when I create a new one directly from the rails console it works (I can see it on my class in Parse.com) .
From my Rails application when I edit an existing user it works too.

Any suggestion?

Cheers,

Philippe
------------------------------
RestClient::BadRequest in UsersController#create

400 Bad Request
Rails.root: /Users/saigonaut/Work/Projects/RoR/parsetest

Application Trace | Framework Trace | Full Trace
app/controllers/users_controller.rb:46:in `block in create'
app/controllers/users_controller.rb:45:in `create'
Request

Parameters:

{"utf8"=>"âœ“",
"authenticity_token"=>"wNzLZQ7j56RQTUbjV6BkcCb4k2rGNHe5+tE292iXXQw=",
"user"=>{"name"=>"Toto",
"username"=>"toto",
"email"=>"toto"},
"commit"=>"Create User"}