I just started learning Ember.js (bought the PeepCode screencast), and am learning quite smoothly from it, but ran into a problem when trying to write my first Ember app.
Based on mavilein's answer, but shorter and suitable for Ember CLI with Ember Data...
import Ember from 'ember';
export default Ember.Route.extend({
setupController: function( controller, model ) {
controller.set( "model", this.store.fetch( 'place', model.id ) );
},
});
Also note that the fetch method is only available from Ember Data 1.0.0-beta.12.
http://emberjs.com/api/data/classes/DS.Store.html#method_fetch