I need to know how to get an ArrayController's position of an object in it's content array. Let's say:
App.AnArrayController = Ember.ArrayController.set({
content: [],
});
App.AnObject = Ember.Object.set({
name: null,
lastname: null,
id: 0
});
Now, let's say that i've inserted two AnObject in AnArrayController's content. How can I update a particular object's value without knowing it's position in the ArrayController, but knowing just that the object's id property is X?
Thanks!