title: Ember Data TypeError during routing
body: <p>I'm getting this JS error while trying to use Ember routing:</p>
  
  <pre><code>Uncaught TypeError: Object &lt;DS.Store:ember215&gt; has no method 'create' ember-data-latest.js:3677
      Ember.onLoad.app.registerInjection.injection ember-data-latest.js:3677
      Ember.Application.Ember.Namespace.extend.initialize ember-latest.js:10381
      Ember.Application.Ember.Namespace.extend.initialize ember-latest.js:10380
      Ember.Application.Ember.Namespace.extend.initialize ember-latest.js:10379
      (anonymous function) app.js:6
  </code></pre>
  
  <p>This is with the latest Ember.js and Ember Data from GitHub today (the master version, not the release versions). I'm aware that using the current release version can cause similar issues, but so far this seems unusual.</p>
  
  <p>Looking back at those lines, it appears the Ember routing code calls an Ember Data function, and that causes the error (and prevents routing from working properly).</p>
  
  <p>Are there any solutions to this yet?</p>
  
  <p><strong>jsFiddle:</strong> <a href="http://jsfiddle.net/bkjT4/2/" rel="nofollow">http://jsfiddle.net/bkjT4/2/</a></p>
  
  <pre class="lang-js prettyprint-override"><code>App = Ember.Application.create({});
  
  App.Store = DS.Store.create({
    revision: 4,
    adapter: DS.RESTAdapter.create()
  });
  
  App.Router = Ember.Router.extend({
    root: Ember.State.extend({
      index: Ember.State.extend({
        route: '/'
      })
    })
  });
  
  App.router = App.Router.create({
      location: 'history' // does the same with hash
  });
  
  App.initialize(App.router);
  </code></pre>
  
  <p>​</p>