Skip to content

Instantly share code, notes, and snippets.

@walter
Created February 7, 2013 02:50
Show Gist options
  • Save walter/4728005 to your computer and use it in GitHub Desktop.
Save walter/4728005 to your computer and use it in GitHub Desktop.
Example routes for simple blog application
# 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