Created
February 7, 2013 02:50
-
-
Save walter/4728005 to your computer and use it in GitHub Desktop.
Example routes for simple blog application
This file contains 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' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment