How can I programmatically add/remove models to a controller?
问题 This shouldn't be too hard. I have a datepicker UI widget, and each time the user clicks on a month, I want to add or remove that month from the MonthsController (an ArrayController ). The MonthsController is not associated with a route, so in my ApplicationTemplate I simply have {{render months}} A simplified version of my datepicker view is App.DatepickerView = Ember.View.extend({ click: function(e) { var id = $(this).datepicker().data('date').replace(" ", "-"); this.get('controller