0

I'm trying to create model objects on the fly using Backbone.Collection.create...but I note that the collection uses its url and not the model's url...

Is this how it suppose to work? Can I override it on the fly just for this particular .create()?

Kendall
  • 5,065
  • 10
  • 45
  • 70

1 Answers1

0

You can specify the options attribute that contain the url property :

Backbone.Collection.create({
  key: "value",
  ...
}, { url : 'yourUrlHere' });
Rida BENHAMMANE
  • 4,111
  • 1
  • 14
  • 25