Skip to content

Instantly share code, notes, and snippets.

@triniMahn
Created March 17, 2014 23:20
Show Gist options
  • Save triniMahn/9610406 to your computer and use it in GitHub Desktop.
Save triniMahn/9610406 to your computer and use it in GitHub Desktop.
Shows the Backbone Model set up for use with Backbone-orm on the server.
class window.Todo extends Backbone.Model
#You can use this to test the (client-side) app logic if you're having issues with BackboneORM to start
#localStorage: new Backbone.LocalStorage('todos-backbone-marionettejs')
urlRoot: '/todos'
#Use backbone-http to communicate with your server -- overriding the model sync method here
sync: BackboneHTTP.sync(Todo)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment