{"action":"created","issue":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/14657","repository_url":"https://api.github.com/repos/emberjs/ember.js","labels_url":"https://api.github.com/repos/emberjs/ember.js/issues/14657/labels{/name}","comments_url":"https://api.github.com/repos/emberjs/ember.js/issues/14657/comments","events_url":"https://api.github.com/repos/emberjs/ember.js/issues/14657/events","html_url":"https://github.com/emberjs/ember.js/issues/14657","id":192454089,"number":14657,"title":"ember 2.10 undefined route dynamic segment no longer working.","user":{"login":"arenoir","id":113590,"avatar_url":"https://avatars.githubusercontent.com/u/113590?v=3","gravatar_id":"","url":"https://api.github.com/users/arenoir","html_url":"https://github.com/arenoir","followers_url":"https://api.github.com/users/arenoir/followers","following_url":"https://api.github.com/users/arenoir/following{/other_user}","gists_url":"https://api.github.com/users/arenoir/gists{/gist_id}","starred_url":"https://api.github.com/users/arenoir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arenoir/subscriptions","organizations_url":"https://api.github.com/users/arenoir/orgs","repos_url":"https://api.github.com/users/arenoir/repos","events_url":"https://api.github.com/users/arenoir/events{/privacy}","received_events_url":"https://api.github.com/users/arenoir/received_events","type":"User","site_admin":false},"labels":[{"id":492697423,"url":"https://api.github.com/repos/emberjs/ember.js/labels/Ember%202.10","name":"Ember 2.10","color":"eb6420","default":false},{"id":169770397,"url":"https://api.github.com/repos/emberjs/ember.js/labels/Needs%20Bug%20Verification","name":"Needs Bug Verification","color":"eb6420","default":false},{"id":362729972,"url":"https://api.github.com/repos/emberjs/ember.js/labels/Needs%20Reproduction","name":"Needs Reproduction","color":"eb6420","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-11-30T01:53:32Z","updated_at":"2016-12-29T14:37:39Z","closed_at":null,"body":"This looks more like a unsupported feature than a bug but I thought I would log it.\r\n\r\nWhen upgrading from 2.9.1 to 2.10 I ran into the following exception. \r\n\r\n```\r\n\"Assertion Failed: You attempted to define a `{{link-to \"timecards\"}}` but did not pass the parameters required for generating its dynamic segments. You must provide param `login` to `generate`.\"\r\n``` \r\n\r\n```\r\n#app/router.js\r\nthis.route('timecards', {path: '/timecards/:login'}, function() {\r\n  this.route('index', { path: '/' });\r\n  this.route('timecard-day', {path: '/day/:date'});\r\n  this.route('pay-period', {path: '/pay-period/:date'});\r\n});\r\n\r\n#app/routes/timecards.js #model hook\r\nmodel(params) {    \r\n  let login = params.login || this.get('currentUser.login');\r\n  return this.store.peekAll('user').findBy('login', login);\r\n}\r\n\r\n```\r\n\r\nIt was quite handy to use a optional dynamic segment on the parent route to load a default user model rather than having to load it for each individual child routes. "},"comment":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/comments/269638824","html_url":"https://github.com/emberjs/ember.js/issues/14657#issuecomment-269638824","issue_url":"https://api.github.com/repos/emberjs/ember.js/issues/14657","id":269638824,"user":{"login":"dustinfarris","id":1087165,"avatar_url":"https://avatars.githubusercontent.com/u/1087165?v=3","gravatar_id":"","url":"https://api.github.com/users/dustinfarris","html_url":"https://github.com/dustinfarris","followers_url":"https://api.github.com/users/dustinfarris/followers","following_url":"https://api.github.com/users/dustinfarris/following{/other_user}","gists_url":"https://api.github.com/users/dustinfarris/gists{/gist_id}","starred_url":"https://api.github.com/users/dustinfarris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dustinfarris/subscriptions","organizations_url":"https://api.github.com/users/dustinfarris/orgs","repos_url":"https://api.github.com/users/dustinfarris/repos","events_url":"https://api.github.com/users/dustinfarris/events{/privacy}","received_events_url":"https://api.github.com/users/dustinfarris/received_events","type":"User","site_admin":false},"created_at":"2016-12-29T14:37:39Z","updated_at":"2016-12-29T14:37:39Z","body":":point_up: does this count as a reproduction?"}}
{"actor":{"display_login":"dustinfarris"}}