I'm using Ember.js 1.0 and Ember-Data 1.0beta. I have a model with a hasMany
relationship:
Whistlr.Activity = DS.Model.extend
participants: DS.hasMany('activityParticipant')
I would like the client to be able to add participants
directly in the activity
form, but I have no idea how to express this in the template. Specifically, how would I write the valueBindings? Something like:
Em.TextField valueBinding="participant[2].name"