title: Ember.js nested routes
body: <p>Cheers! I've got routes:</p>
  
  <pre><code>TravelClient.Router.map(function() {
    this.resource('tours', function() {
      this.resource('tour', { path: ':tour_id' }, function(){
        this.route('seats');
      });   
    });
  });
  </code></pre>
  
  <p>And a template:</p>
  
  <pre><code>  &lt;script type="text/x-handlebars" data-template-name="tour/seats"&gt;
      {{...}}
    &lt;/script&gt;
  </code></pre>
  
  <p>Seats is an attribute of Tour object:</p>
  
  <pre><code>TravelClient.Tour.find(1).get('seats');
  12
  </code></pre>
  
  <p>And I extend my TourSeats route like this:</p>
  
  <pre><code>TravelClient.TourSeatsRoute = Ember.Route.extend({
    model: function(params) {
      return TravelClient.Tour.find(params.tour_id).get('seats');
    }
  });
  </code></pre>
  
  <p>Question: how to render tour's seats in template?</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>My fixtures looks like that:</p>
  
  <pre><code>TravelClient.Store = DS.Store.extend({
    revision: 11,
    adapter: 'DS.FixtureAdapter'
  });
  
  TravelClient.Tour = DS.Model.extend({
    title: DS.attr('string'),
    description: DS.attr('string'),
    seats: DS.attr('number')
  });
  
  TravelClient.Tour.FIXTURES = [{
    id: 1,
    title: "Brighton, England",
    description: "Lorem ipsum dolor ... .",
    seats: 12
  },...
  </code></pre>
  
  <p>And I've changed my route extend to this:</p>
  
  <pre><code>TravelClient.TourSeatsRoute = Ember.Route.extend({
    model: function(params) {
      return TravelClient.Tour.find(params.tour_id);
    }
  });
  </code></pre>
  
  <p>And in template:</p>
  
  <pre><code>  &lt;script type="text/x-handlebars" data-template-name="tour/seats"&gt;
      {{tour.seats}}
    &lt;/script&gt;
  </code></pre>
  
  <p><strong>UPDATE 2:</strong></p>
  
  <pre><code>  &lt;script type="text/x-handlebars" data-template-name="tour/seats"&gt;
      {{controller.model.seats}}
    &lt;/script&gt;
  </code></pre>
  
  <p>and it gives undefind back.
  After some debugging I founded out, that there is no any id in params and params is empty, thats why I can't get the right model in TourSeatsRoute function.</p>