I've been working on integrating Ember fixtures data into a test app I'm developing with the ember-rails gem. The Chrome Ember inspector tool shows that the data model is loading, but the actual data isn't coming through.
Here's my current setup:
router.js
App.Router.map(function() {
this.resource('projects'), { path: '/' };
});
store.js
App.ApplicationAdapter = DS.FixtureAdapter
models/project.js
App.Project = DS.Model.extend({
name: DS.attr('string')
});
App.Project.FIXTURES = [
{ id: 1,
name: 'Test data 1'
},
{ id: 2,
name: 'Test data 2'
}
];
routes/projectsRoute.js
App.ProjectRoute = Ember.Route.extend({
model: function() {
return this.store.find('project');
}
});
This project is built on top of rails using the ember-rails gem.
Any assistance would be greatly appreciated :)