title: How to define route name for nested resource in Ember.js?
body: <p>I've got nested resources in my ember routes. Lets suppose according <a href="http://emberjs.com/guides/routing/defining-your-routes/#toc_nested-resources" rel="nofollow">this example</a>, that my <code>router.js</code> looks like:</p>
  
  <pre><code>App.Router.map(function() {
    this.resource('post', { path: '/post/:post_id' }, function() {
      this.resource('comment', { path ':comment_id' });
    });
  });
  </code></pre>
  
  <p>The documentation says this should generate routes like:</p>
  
  <pre><code>/post/:post_id              post.index
  /post/:post_id/:comment_id  comment.index
  </code></pre>
  
  <p>However I would like these to be <code>post.show</code> and <code>comment.show</code>, how do I rename these routes?</p>