Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 308 Bytes

routes-segments-snake-case.md

File metadata and controls

13 lines (9 loc) · 308 Bytes

Route naming

Rule name: routes-segments-snake-case

Dynamic segments in routes should use snake case, so Ember doesn't have to do extra serialization in order to resolve promises.

// GOOD
this.route('tree', { path: ':tree_id'});

// BAD
this.route('tree', { path: ':treeId'});