title: Ember: how do you access the model from the router?
body: <p>Based on what I've read (please correct me if I'm mistaken), the logic that handles when a model should be saved and where to transition next should be in the router.</p>
  
  <p>If that is the case, I'm running into a bit of a problem: <strong>I don't know how to access the model from the route</strong>.</p>
  
  <p>This is my controller (and the console logs "CREATED" after I press submit):</p>
  
  <pre><code>App.ScoutsNewController = Ember.ObjectController.extend
    submit: -&gt;
      model = @get('model')
      model.on 'didCreate', -&gt;
        console.log 'CREATED' # I want to  redirect to the index after creation
      model.save()
  </code></pre>
  
  <p>I should move that logic into the route, right? Let's try that:</p>
  
  <pre><code>App.ScoutsNewRoute = Ember.Route.extend
    model: -&gt;
      App.Scout.createRecord()
  
    events:
      submit: -&gt;
        # Based on what I've read, the right place to put the code you see in the controller is here. How do I get access to the model?
        # I have tried @get('model'), @get('content')
  </code></pre>
  
  <p>Note: I understand that the submit event bubbles up from the view, to the controller, then finally the route, stopping at any one of them that has "submit" defined. So since I want the route to handle it, I removed the controller. I'm able to see any <code>console.log</code> done in the route, I just need to be able to get to the model instance.</p>
  
  <p>I'm using <code>Ember v1.0.0-rc.5-7-g610589a</code></p>
  
  <p>Thanks!</p>