Skip to content

Commit 21a6538

Browse files
authored
Update defining-your-routes.md to reflect RFC #774
https://rfcs.emberjs.com/id/0774-implicit-record-route-loading
1 parent 452e29d commit 21a6538

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

guides/release/routing/defining-your-routes.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,9 +286,7 @@ Router.map(function() {
286286

287287
If the user navigates to `/post/5`, the route will then have the `post_id` of
288288
`5` to use to load the correct post.
289-
Ember follows the convention of `:model-name_id` for two reasons.
290-
The first reason is that Routes know how to fetch the right model by default, if you follow the convention.
291-
The second is that `params` is an object, and can only have one value associated with a key.
289+
Ember follows the convention of `:model-name_id` because `params` is an object, and can only have one value associated with a key.
292290
To put it in code, the following will _not_ work properly:
293291

294292
```javascript {data-filename=app/router.js}

0 commit comments

Comments
 (0)