js/libs/ember-1.5.1.js
function() {
    // target may be either another controller or a router
    var target = get(this, 'target'),
        method = target.transitionToRoute || target.transitionTo;
    return method.apply(target, arguments);
  }
function() {
    // target may be either another controller or a router
    var target = get(this, 'target'),
        method = target.transitionToRoute || target.transitionTo;
    return method.apply(target, arguments);
  }
Transition the application into another route. The route may
be either a single route or route path:

```javascript
aController.transitionToRoute('blogPosts');
aController.transitionToRoute('blogPosts.recentEntries');
```

Optionally supply a model for the route in question. The model
will be serialized into the URL using the `serialize` hook of
the route:

```javascript
aController.transitionToRoute('blogPost', aPost);
```

If a literal is passed (such as a number or a string), it will
be treated as an identifier instead. In this case, the `model`
hook of the route will be triggered:

```javascript
aController.transitionToRoute('blogPost', 1);
```

Multiple models will be applied last to first recursively up the
resource tree.

```javascript
App.Router.map(function() {
this.resource('blogPost', {path:':blogPostId'}, function(){
this.resource('blogComment', {path: ':blogCommentId'});
});
});

aController.transitionToRoute('blogComment', aPost, aComment);
aController.transitionToRoute('blogComment', 1, 13);
```

It is also possible to pass a URL (a string that starts with a
`/`). This is intended for testing and debugging purposes and
should rarely be used in production code.

```javascript
aController.transitionToRoute('/');
aController.transitionToRoute('/blog/post/1/comment/13');
```

See also [replaceRoute](/api/classes/Ember.ControllerMixin.html#method_replaceRoute).

@param {String} name the name of the route or a URL
@param {...Object} models the model(s) or identifier(s) to be used
while transitioning to the route.
@for Ember.ControllerMixin
@method transitionToRoute