Last active
December 20, 2015 10:49
-
-
Save vanstee/6118032 to your computer and use it in GitHub Desktop.
This file contains 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
// Non-nested resources | |
App.Router.map(function() { | |
this.resource('users', function() { | |
this.route('index'); | |
this.route('new'); | |
}); | |
// The documentation uses /user/:id for these signular resources which | |
// seems wrong if we want to keep them RESTful (at least like rails). | |
this.resource('user', { path: 'users/:user_id' }, function() { | |
this.route('index'); | |
this.route('edit'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment