Skip to content

Instantly share code, notes, and snippets.

@maml
Created March 6, 2015 03:47
Show Gist options
  • Save maml/bed7a7fc5dcfd417f518 to your computer and use it in GitHub Desktop.
Save maml/bed7a7fc5dcfd417f518 to your computer and use it in GitHub Desktop.
# api docs say to submit . . .
{
'user_invitation_token' : 'xyz###',
'first_name' : 'John',
'last_name' : 'Appleseed',
'email' : '[email protected]',
'username' : 'john',
'password' : 'foobar',
'password_confirmation' : 'foobar'
}
# but that returns a 400, you have to . . .
{
"user" : {
'user_invitation_token' : 'xyz###',
'first_name' : 'John',
'last_name' : 'Appleseed',
'email' : '[email protected]',
'username' : 'john',
'password' : 'foobar',
'password_confirmation' : 'foobar'
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment