I've just extracted this code from my project, simplified a little bit:

```coffee
App.ApplicationRoute = Ember.Route.extend
  model: ->
    App.Auth.send(url: "/user").then (data) ->
      @controllerFor('application').set('currentUser', App.User.create(data))
```

So if I leave it this way and visit the page as a guest then I'll get a blank page with
`Error while loading route`

But if I'll wrap all this way, all will be good:

```coffee
model: ->
  new Em.RSVP.Promise (resolve, reject) ->
    App.Auth.send(url: "/user").then (data) ->
      @controllerFor('application').set('currentUser', App.User.create(data))
      resolve()
    , -> resolve()
```

Or maybe I've messed up something and this works for another reason?