title: Ember JS cannot createRecord with new ember-data syntax
body: <p>I am trying to use the new ember-data syntax like explained here: <a href="https://github.com/emberjs/data/blob/master/TRANSITION.md" rel="nofollow">https://github.com/emberjs/data/blob/master/TRANSITION.md</a> (read from <strong>Transaction is Gone: Save Individual Records</strong> ).</p>
  
  <p>When I hit the save button I get the error <code>Uncaught TypeError: Cannot call method 'save' of undefined</code> in the console. Also in the network tab, there is no POST request to the api.</p>
  
  <p><strong>The template</strong></p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;script type="text/x-handlebars" data-template-name="landcode/new"&gt;
      Code: {{input value=code}}&lt;br /&gt;
      Image: {{input value=image}}&lt;br /&gt;
  &lt;button {{action 'saveLandcode'}}&gt;opslaan&lt;/button&gt;
  </code></pre>
  
  <p></p>
  
  <p><strong>The app.js</strong> (relevant code)</p>
  
  <pre class="lang-js prettyprint-override"><code>App.Router.map(function() {
      this.resource("landcodes"),
      this.resource("landcode", function() {
          this.route("new");
      });
  });
  
  App.LandcodeNewRoute = Ember.Route.extend({
      model: function() {
          this.store.createRecord('landcode');
      },
      actions: {
          saveLandcode: function(){
              this.modelFor('landcode').save(); // does not save
          }
      }
  });
  
  App.ApplicationAdapter = DS.RESTAdapter.extend({
      namespace: 'api'
  });
  App.Store = DS.Store.extend({
      adapter: 'App.ApplicationAdapter'
  });
  
  App.Landcode = DS.Model.extend({
      code: DS.attr('string'),
      image: DS.attr('string')
  });
  </code></pre>