Skip to content

Commit

Permalink
[ember] Use :post_id rather than :id in post route definition
Browse files Browse the repository at this point in the history
Fixes #49
  • Loading branch information
LBRapid authored and radar committed Apr 6, 2014
1 parent fbc8e0b commit d3eade9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ember.md
Expand Up @@ -312,7 +312,7 @@ We can define this route in `app/assets/javascripts/router.js.coffee` by using t

```coffee
Blorgh.Router.map ()->
@resource 'post', path: '/posts/:id'
@resource 'post', path: '/posts/:post_id'
```

The `resource` function defines a new route for our Ember app. When we refresh our app again, we will now be able to click on a post's link and go to that post's page. That doesn't currently display anything and the console again will tell us why:
Expand Down

0 comments on commit d3eade9

Please sign in to comment.