Created
April 2, 2014 02:47
-
-
Save jvenator/9927156 to your computer and use it in GitHub Desktop.
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.Router.map(function() { | |
this.route('user-guide'), | |
this.resource('listings', function() { | |
// assumes scoping of listings (property, portfolio, mgr) occurs in index | |
this.resource('listing'); | |
}); | |
this.resource('application-packages', function() { | |
this.resource('application-package', function() { | |
// the index for applications sits in the application-packages route | |
this.resource('application'); | |
}); | |
}); | |
this.resource('leads', function() { | |
this.resource('lead'); | |
}); | |
}); | |
this.resource('application-packages', function() { | |
this.resource('application-package', function() { | |
// the index for applications sits in the application-packages route | |
this.resource('applications', function(){ | |
this.route('application', path: ':id'); | |
}); | |
}); | |
}); | |
// ApplicationsIndexRoute = Ember.Route.extend({ | |
// redirect: function() { | |
// this.transitionTo('application-package'); | |
// } | |
// }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment