I'm struggling to get my model's fixture data to render to my template, I receive the error above when I try an each loop in my template:
{{#each}}
{{title}}
{{/each}}
I have set up my router like so:
Application.Router.map(function() {
this.resource('application', { path: '/' });
});
Application.ApplicationRoute = Ember.Route.extend({
model: function() {
return this.store.find('applicationmodel');
}
});
And my model is setup like so:
Application.ApplicationModel = DS.Model.extend({
title: DS.attr('string')
});
Application.ApplicationModel.FIXTURES = [
{
id: 1,
title: 'title-1'
},
{
id: 2,
title: 'title-2'
}
];
Can anyone tell me what I'm doing wrong?
Thanks
applicationModelwhen querying the store emberjs.jsbin.com/OxIDiVU/295/edit - Kingpin2k