title: EmberJS no model was found
body: <p>The first time using EmberJS with MongoDB backend. Trying connect to a HTTP Server. </p>
  
  <p>Chrome console shows:
  Error while loading route: Error: No model was found for '0'</p>
  
  <p><strong>app.js</strong></p>
  
  <pre><code>App = Ember.Application.create();
  
  App.Router.map(function() {
    // put your routes here
    this.resource('users');
    this.resource('customers');
  });
  
  App.Store = DS.Store.extend({
      adapter: DS.RESTAdapter,
  });
  DS.RESTAdapter.reopen({
    namespace: 'api'
  });
  
  App.UsersRoute = Ember.Route.extend({
    model: function(params) {
      return this.store.find('users');
    }
  
  });
  
  var attr = DS.attr;
  
  App.Users = DS.Model.extend({
    fname: attr(),
    lname: attr(),
    nname: attr(),
    email: attr(),
    role: attr()
  });
  </code></pre>
  
  <p><strong>JSON</strong></p>
  
  <pre><code>[
    {
      "_id": "538c00932d22d69a46130a47",
      "fname": "John",
      "lname": "Doe",
      "email": "john.doe@gmail.com"
    },
    {
      "_id": "538c00932d22d69a46130a48",
      "fname": "Jane",
      "lname": "Doe",
      "email": "jane.doe@gmail.com"
    }
  ]
  </code></pre>
  
  <p>Any help is greatly appreciated.</p>