Category: backbone

Backbone does not append ID to the URL when updating model 0

Backbone does not append ID to the URL when updating model

The reason could be that you do not use urlRoot. This is not good : Storage.Model = Backbone.Model.extend({ urlRoot: "/apis/storage", url: "/apis/storage", defaults: ... }); This will work: Storage.Model = Backbone.Model.extend({ urlRoot: "/apis/storage", defaults:...

Backbone.Validation Checklist for troubleshooting validation not working 0

Backbone.Validation Checklist for troubleshooting validation not working

Client-side javascript validation using Backbone.Validation Troubleshooting Checklist (1) Make sure backbone.validation.js and backbone.validation.bootstrap.js are included. backbone.validation.js : https://github.com/thedersen/backbone.validation/blob/master/src/backbone-validation.js backbone.validation.boostrap.js : https://gist.github.com/driehle/2909552 (2) Make sure your model extends Backbone.Model() and add a validation object to your model after the default declaration : SuperApp.Model = Backbone.Model.extend({ defaults...