I was going through one of the Ember tutorial on lynda.com and I saw that the instructor defined a dynamic route as:
this.route('bookmarks', function() {
this.route('new');
this.route('edit', {
path: '/edit/:bookmark_id'
});
});
Now if I go to browser and type: "http://localhost:4200/bookmarks/new" then I can see my new route is getting loaded and i can see the content there. But if I try: "http://localhost:4200/bookmarks/edit/1" then ember does not show anything unless I create a model by name bookmarks. Can anyone tell why a model is needed for dynamic routes to get executed?