Ember-data findAll not working


I’m using the ember-data last version with an important problem I 'm trying to solve.

The find function by id works perfect and the proper record is loaded into the Data Store so I can obtain the attributes that I want in the template for render them.

App.PostRoute = Ember.Route.extend({
    model: function(params) {
      return this.store.find('post', params.post_id);

On the other side, the findAll function doesn’t work for me and the problem is Ember doesn’t throw any error. In addition, Ember doesn’t load any record and besides that I don’t know how to iterate over the RecordArray returned in the template.

App.PostsRoute = Ember.Route.extend({
      model: function() {
        return this.store.find('post');

Any suggestions? Thanks for the help.


What adapter you are using? Please show your payload.


I was using RESTAdapter but I finally found a way-out using a JSON response according to Ember. Thanks!