title: Assertion Failed: You need to pass a model name to the store's modelFor method
body: <p>Pretty new to Ember so maybe someone can help me out. I keep running across this error and have no idea how to solve it.</p>
  
  <pre><code>Ember             : 2.5.1
  Ember Data        : 2.5.3
  </code></pre>
  
  <p>Below is my <code>router.js</code>.</p>
  
  <pre><code>//app/router.js
  import Ember from 'ember';
  import config from './config/environment';
  
  const Router = Ember.Router.extend({
    location: config.locationType
  });
  
  Router.map(function() {
    this.route('organization', {path: '/organization/:id'}, function(){
      this.route('about', { path: '/about' });
      this.route('admin', { path: '/admin' }, function(){
          this.route('team', { path: '/team/:team_id' });
      });
    });
  });
  </code></pre>
  
  <p>The <code>organization/:id/about</code> and <code>organization/:id/admin</code> routes work fine. But when I try to load the <code>organization/:id/admin/team/:team_id</code> route, the error is thrown. Below is the <code>routes/organization/admin/team.js</code> file:</p>
  
  <pre><code>//app/routes/organization/admin/team.js
  import Ember from 'ember';
  
  export default Ember.Route.extend({
  
      model(params) {
          let organization = this.modelFor('organization');
          return organization.get('team');
      }
  
  });
  </code></pre>
  
  <p>Not really sure what other information I should post, so please ask for any additional information you may think is necessary to help debug. My guess is it's something pretty simple and I'm completely oblivious to it.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I've added a couple more files to help diagnose the problem:</p>
  
  <pre><code>//app/routes/organization.js
  import Ember from 'ember';
  
  export default Ember.Route.extend({
    model(params) {
      return this.store.findRecord('organization', params.organization_id)
    }
  });
  
  //app/routes/organization/admin.js
  import Ember from 'ember';
  
  export default Ember.Route.extend({
    actions: {
      changeValue(){
        this.currentModel.save();
      }
    }
  });
  </code></pre>
  
  <p>Where <code>currentModel</code> is the model for the <code>organization</code> route. I've removed the <code>organization.admin.team</code> model hook for now and am just testing a </p>
  
  <p><code>{{#link-to 'organization.admin.team' model.team.id}} Team {{/link-to}}</code></p>
  
  <p>in a component rendered in the <code>organization.admin</code> template where I pass <code>model=model</code>. But now I get the same error (Assertion Failed: You need to pass a model name to the store's modelFor method) in the Javascript console when rendering the <code>organization.admin</code> template.</p>