Say I have a model “Client” that retrieves a property “clientName”
App.ClientsRoute = Ember.Route.extend({
model: function() {
return App.Client.find();
},
App.Client = DS.Model.extend({
clientName: DS.attr('string'),
});
And I want to setup an Ember.Select so that the option values are all the “clientName”.
Currently, it seems that Ember.Select only accepts Ember.Array objects as I tried to setup a Em.ArrayController for the Client model without any success. Does anyone know if I have to loop through all the records in the Client model and do a pushObject with each record into an Ember.Array? Or is there an easier way?