I'm just getting started with Ember 2.0 and I'm trying to build a simple CRUD application using Ember Data. I've been following the Ember guides online but I've run into an issue.
I'm populating default data into my store using this.store.push in my routes/application.js file. When I use this.store.findRecord(modelName, id) immediately after, it seems as though my data is persisting successfully:
However, when I use this.store.findAll(modelName), I get a 404 as a result of an "Adapter operation failed" error:
I've done some searching around, but given such an ambiguous error I haven't had much luck. If anyone has any insight I'd greatly appreciate it! Here's the code I used to create the console output:
var wine = this.store.findRecord('wine', 5);
var wines = this.store.findAll('wine');
console.log(wine);
console.log(wines);
And an example of a model that I'm creating:
this.store.push('wine', {
id: '5',
name: 'Pink Moscato',
vintage: '2014',
description: 'The wine has aromas of Mandarin orange and sweet ' +
'jasmine. It has subtle flavors of cherry, raspberry, and ' +
'pomegranate.',
imageUrl: 'https://placehold.it/290x290'
});

