Skip to content

Instantly share code, notes, and snippets.

@alexandrebini
Created January 20, 2013 23:26
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexandrebini/4582548 to your computer and use it in GitHub Desktop.
Save alexandrebini/4582548 to your computer and use it in GitHub Desktop.
App.Router.reopen
location: 'history'
enableLogging: true
App.Router.map ->
@resource 'admin', ->
@resource 'wallpapers', ->
@route 'new'
App.AdminRoute = Ember.Route.extend
setupController: (controller, model) ->
console.log 'admin'
@controllerFor('application').set('currentRoute', 'home')
App.WallpapersRoute = Ember.Route.extend
setupController: (controller, model) ->
console.log 'admin wallpapers'
@controllerFor('application').set('currentRoute', 'home')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment