App.Router.map(function(match) {
match('/').to('index');
match('/about').to('about');
match('/contributor/:contributor_id').to('contributor');
});
As I can access /contributors/78422
successfully when linked like this:
{{#each contributor in controller}}
<li>{{#linkTo contributor contributor}}{{contributor.login}}{{/linkTo}}</li>
{{/each}}
Now I was expecting to have these routes:
/contributor/78422
/contributor/78422/details
/contributor/78422/repos
With:
App.Router.map(function(match) {
match('/').to('index');
match('/about').to('about');
match('/contributor/:contributor_id').to('contributor', function(){
match('/details').to('details');
match('/repos').to('repos');
});
});
But I get this error when rendering the same template as above:
Uncaught Error: There is no route named contributor