Ember mocking in js fiddle

Hi People,

I have an issue with has many but I’m just trying to create a JS fiddle, i just need to return a sub list for my controller like so:

var cars = '{"cars":[{"id":"402502d6-071d-469a-8aab-b468bf64fe83","name":"A"},{"id":"a6351176-32cd-45e4-9bee-dfc3a9a68349","name":"B"}]}'

App.StatusesCreateRoute = Ember.Route.extend({
    setupController: function(controller) {
      Ember.run.later(function(){ httpRespond('get', '/cars', cars); }, 15);
      var cars = this.store.findAll('car');
      controller.set('carList', cars);
      controller.set('content', this.store.createRecord('status'));
    }
});   

but i’m getting: “Error while loading route: index Assertion Failed: The response from a findAll must be an Array, not undefined Error: Assertion Failed: The response from a findAll must be an Array, not undefined”

here is my fiddle in progress: Ember Data Canary - JSFiddle - Code Playground

Any ideas? Thanks!

edit to fix code formatting.

Never mind solved both issues :smile: