I want to allow the user to change the model id in the collection.
Then I have a problem that when calling model.save() model is saved in the wrong place. This is put for the URL of the new id instead of the URL of the old id
var model = collection.get('oldid'); model.set({id: 'newId'});
This will persist until collectionUrl/ + 'newId' instead of collectionUrl/ + 'oldId'
I want to save (put) {id: 'newId'} to the old URL.
What is the most consistent way to do this?
user524824
source share