Skip to content

Adds a paramRoot option to Backbone.sync for Rails' compatibility

Notifications You must be signed in to change notification settings

spodlecki/backbone-paramRoot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Backbone JS

JavaScript from backbone-rails gem.

Usage

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]'
  }
}

Credit

Full credit goes to the backbone-rails gem

About

Adds a paramRoot option to Backbone.sync for Rails' compatibility

Resources

Stars

Watchers

Forks

Packages

No packages published