Skip to content

Instantly share code, notes, and snippets.

@cloke
Created October 31, 2012 16:57
Show Gist options
  • Select an option

  • Save cloke/3988280 to your computer and use it in GitHub Desktop.

Select an option

Save cloke/3988280 to your computer and use it in GitHub Desktop.
News.Router = Core.Router.extend
enableLogging: true
root: Core.Route.extend
index: Core.Route.extend
route: '/'
redirectsTo: 'nav'
nav: Core.Route.extend
initialState: 'index'
route: '/:nav_id'
index: Core.Route.extend
route: '/'
connectOutlets: (router) ->
router.get('applicationController').connectOutlet 'articles', News.Article.find
limit: 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment