title: Ember data this.store getting undefine
body: <p>I want to add new record to store using emberdata.Js but not working 
   Here is my code</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  
  &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
  &lt;meta name="description" content="ED: Reading" /&gt;
  
  &lt;script src="js/jquery-1.10.2.js"&gt;&lt;/script&gt;
  &lt;script src="js/handlebars-1.1.2.js"&gt;&lt;/script&gt;
  &lt;script src="js/ember-1.5.1.js"&gt;&lt;/script&gt;
  &lt;script src="http://builds.emberjs.com/beta/ember-data.prod.js"&gt;&lt;/script&gt;
  
  
  
  &lt;script type="text/javascript"&gt;
  
  App = Ember.Application.create();
  
  App.Store = DS.Store.extend({
  revision: 12,
  url: 'http://localhost/Ember/Demo2/'
  });
  
  App.Pull = DS.Model.extend({
  title: DS.attr(),
  url: DS.attr(),
  });
  
  App.Router.map(function(){
  this.resource('pull');
  });
  
  var store = this.store;
  
  //var obj = App.Pull.createRecord();
  
  
  
  App.PullRoute = Ember.Route.extend({
  model: 
      function() {
          store.createRecord('pull', {
  title: 'Rails is Omakase',
  url: 'Lorem ipsum'
  });
      //return this.store.find('pull');
      //return App.Pull.find();
      //this.store.createobjects(response);
      }
  });
  
  
  
  
  &lt;/script&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;script type="text/x-handlebars"&gt;
   &lt;h1&gt;Welcome&lt;/h1&gt;
   &lt;div class="navbar-header"&gt;
        {{#link-to 'pull' classNames='navbar-brand'}}
          City List
        {{/link-to}} 
      &lt;/div&gt;
   {{outlet}}
  &lt;/script&gt;
  
  &lt;script type="text/x-handlebars" data-template-name="pull"&gt;
   &lt;h2&gt;GetAllCityList&lt;/h2&gt;
   &lt;div class="navbar-header"&gt;
   &lt;ul&gt;
   {{#each model}}
      &lt;li&gt;{{title}}&lt;/li&gt;
   {{/each}}
   &lt;/ul&gt;
   &lt;/div&gt;
  
  &lt;/script&gt;
  
  
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I am trying to add record to store type of model on calling of model city but this.store is giving me undefined.</p>
  
  <p>below is error in ember insepctor</p>
  
  <pre><code>Error while loading route: TypeError: Cannot read property 'createRecord' of undefined
  at App.PullRoute.Ember.Route.extend.model   (http://localhost/Ember/Demo2/storedemo.html:42:9)
  at superWrapper [as model] (http://localhost/Ember/Demo2/js/ember-1.5.1.js:1292:16)
  at Ember.Route.Ember.Object.extend.deserialize (http://localhost/Ember/Demo2/js/ember-1.5.1.js:36570:19)
  at http://localhost/Ember/Demo2/js/ember-1.5.1.js:32972:57
  at http://localhost/Ember/Demo2/js/ember-1.5.1.js:33464:19
  at invokeResolver (http://localhost/Ember/Demo2/js/ember-1.5.1.js:9646:9)
  at new Promise (http://localhost/Ember/Demo2/js/ember-1.5.1.js:9632:9)
  at Router.async (http://localhost/Ember/Demo2/js/ember-1.5.1.js:33463:16)
  at Object.HandlerInfo.runSharedModelHook (http://localhost/Ember/Demo2/js/ember-1.5.1.js:32971:16)
  at Object.UnresolvedHandlerInfoByParam.getModel (http://localhost/Ember/Demo2/js/ember-1.5.1.js:33058:19)
  
  &gt;this.store
  undefined
  </code></pre>