Ember 过渡到父动态段(slugs)上的路由

Ember transition to route on parent dynamic segments (slugs)

我已经设置了当前 router.js

this.resource('parent', {path:'parent/:id'},function() {
  this.route('child', {path:'child/:name'});
});

有效的页面是 www.x.com/parent/5/child/jimmywww.x.com/parent/5

使用 this.transitionToRoute('parent.child','jimmy'); 将转到此页面 www.x.com/parent/5/child/jimmy

使用 this.transitionToRoute('parent','5'); 将转到此页面 www.x.com/parent/5

由于该路由是嵌套的,所以:id参数对子路由有影响...

我怎样才能过渡到 www.x.com/parent/100/child/jimmy?这是父动态段 :id 的更新,同时维护子动态段。

this.transitionToRoute('parent.child', '100', 'jimmy');

http://emberjs.com/api/classes/Ember.Controller.html#method_transitionToRoute

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