Working with Ember.Select


#1

Trying to select an option in a select list.

Here’s my model and my route:

 // model
 App.Card = DS.Model.extend({
           title: DS.attr('string'),
           status: DS.attr('string'),
           timestamp: DS.attr('string')
 });

 // route
 App.CardRoute = Ember.Route.extend({                                                                                                                                                                           
       model: function(params) {
           return this.get('store').find('card', params.id);
       },
       setupController: function(controller, model) {
           controller.set('model', model);
           this.store.find('status').then(function(statuses) {
               controller.set('statuses', statuses);    
           });
       }
});

Here’s the view

                       <!-- this works fine and display the card's title -->
                        {{view Ember.TextField valueBinding="title" id="title" placeholder="Title" required="true"}}
                        {{view Ember.Select 
                                contentBinding="statuses"
                                optionValuePath="content.label"
                                optionLabelPath="content.label"
                                selectionBinding="status"
                        }}

selectionBinding=“status” or valueBinding=“status” give the same result: the options are displayed but the right option is not selected.

What am I doing wrong? I’m using ember 1.0.0

Thank you for your help.