Skip to content

Instantly share code, notes, and snippets.

@litch
Created February 23, 2013 18:35
Show Gist options
  • Save litch/5020808 to your computer and use it in GitHub Desktop.
Save litch/5020808 to your computer and use it in GitHub Desktop.
App.Router.map(function() {
this.resource('tables', function() {
this.resource('table', {path: ':table_id'});
});
});
aContributor: Ember.Route.extend({
route: '/:githubUserName',
connectOutlets: function(router, context){
router.get('applicationController').connectOutlet('oneContributor', context);
},
serialize: function(router, context){
return {
githubUserName: context.get('login')
}
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment