Jak odzyskać ścieżkę trasy?

Biorąc pod uwagę następującą konfigurację routera:

App.Router.map(function() {
  this.resource('posts', function() {
    this.route('new');
    this.resource('post', { path: ':post_id' }, function() {
      this.route('edit');
    });
  });
});

Czy możliwe jest uzyskanieścieżka trasy?

Fikcyjny przykład:

App.Router.get('path', 'posts.new'); //=> "/posts/new"

Lub z modelem takim jak:

App.Router.get('path', 'post.edit', model); //=> "/posts/1/edit"

questionAnswers(1)

yourAnswerToTheQuestion