Skip to content

Instantly share code, notes, and snippets.

@kennethdavidbuck
Created September 8, 2013 20:41
Show Gist options
  • Save kennethdavidbuck/6488223 to your computer and use it in GitHub Desktop.
Save kennethdavidbuck/6488223 to your computer and use it in GitHub Desktop.
dynamic route created
/**
* Dynamically create routes
*/
App.Router.map(function(){
this.resource('browse',function(){
this.resource(table.plural,function(){
this.route('add');
this.route('query',{ path:'/:query_string' });
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment