JavaScript from backbone-rails gem.
class User extends Backbone.Model
paramRoot: 'user'
What this JS will do is send the POST / PUT with a container user
{
user: {
email: '[email protected]'
}
}
Full credit goes to the backbone-rails gem