title: Ember and Sails Create/Save Relationship (BelongsTo/HasMany)
body: <p>I'm having trouble trying to get ember and sails playing nice together when it comes to relationships with belongsTo/hasMany.</p>
  
  <p>I have a simple form:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;form {{action 'addMessage' on='submit'}}&gt;
  &lt;div class="form-group"&gt;
      &lt;label for='name'&gt;Title&lt;/label&gt;
    {{input value=title class="form-control" required="required"}}
  &lt;/div&gt;
  
  &lt;div class="form-group"&gt;
      &lt;label for='location'&gt;User&lt;/label&gt;
      {{input value=user class="form-control" required="required" value=1}}&lt;/div&gt;
  
  &lt;p&gt;
      &lt;button class="btn btn-primary btn-block" type="submit"&gt;Create Message&lt;/button&gt;
  &lt;/p&gt;
  </code></pre>
  
  <p></p>
  
  <p>And a controller with the action</p>
  
  <pre><code>actions: {
  addMessage: function() {
  
    var newMessage = this.store.createRecord('message', {
      title: this.get('title'),
      user: this.get('user')
    });
    newMessage.save().then(function() {
    }, function(error) {
      console.warn('Save Failed.', error);
    });
  },
  </code></pre>
  
  <p>I'm just passing a string, and a value which matches a user id. When I look at what's being passed the title is fine, but the user id is null.</p>
  
  <p>I'm using sails ember blueprints so it should work, but think I might be doing something wrong.</p>
  
  <p>I've uploaded the sample code here if someone can take a look <a href="https://github.com/jimmyjamieson/ember-sails-example" rel="nofollow">https://github.com/jimmyjamieson/ember-sails-example</a></p>