title: Struggling with Ember-data's REST adapter and nested resources
body: <p>I'm really struggling with Ember-data's REST adapter and nested resources and would appreciate any help... I'm using the latest (1.0.4pre) version of Ember and Ember-data (revision: 11).</p>
  
  <p>I have 2 simple models:</p>
  
  <pre><code>App.User = DS.Model.extend({
    name:     DS.attr('string'),
    email:    DS.attr('string'),
    schemes:  DS.hasMany('App.Scheme')
  });
  
  App.Scheme = DS.Model.extend({
    name: DS.attr('string'),
    users: DS.hasMany('App.User')
  });
  </code></pre>
  
  <p>and simple nested routes:</p>
  
  <pre><code>Router.map(function() {
    this.resource("user", { path: "users/:user_id" }, function() {
      this.resource("schemes");
    });
  });
  </code></pre>
  
  <p>I have a Rails 3 JSON API which has the following endpoints:</p>
  
  <pre><code>/users/:user_id
  /users/:user_id/schemes
  </code></pre>
  
  <p>When I navigate to <code>users/:user_id/schemes</code> in my ember app I want to retrieve all user's schemes, however by default Ember-data requests <code>/schemes</code>, which isn't an endpoint in my API - I can add it but I need to scope schemes by user, I do not have the concept of current_user as I want to view any user and her schemes.</p>
  
  <p>Is there a way of either forcing Ember to look at <code>/users/:user_id/schemes</code> or to append a query parameter to Ember's default ajax call, eg: <code>/schemes?user_id=:user_id</code>?</p>
  
  <p>Alternatively, is there a way of adding to the ajax request headers, which in turn my rails API can read and set up the <code>/schemes</code> response accordingly?</p>