This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # router | |
| App.Router.map (match) -> | |
| @resource 'posts', -> | |
| # index is implied for resources | |
| @route 'new' | |
| @resource 'post', path: '/:post_id', -> | |
| # index is implied for resources | |
| @route 'edit' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # copied and modified from a working app, but there maybe typos in adaptation | |
| # untested in this form | |
| # router | |
| App.Router.map (match) -> | |
| @resource 'posts', -> | |
| @route 'new' | |
| @resource 'post', path: '/:post_id' | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| App.SomeModel = App.Model.extend | |