Skip to content

Instantly share code, notes, and snippets.

@jvenator
Created April 2, 2014 02:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jvenator/9927156 to your computer and use it in GitHub Desktop.
Save jvenator/9927156 to your computer and use it in GitHub Desktop.
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