Skip to content

Instantly share code, notes, and snippets.

@jackkitley
Last active December 12, 2015 01:18
Show Gist options
  • Save jackkitley/4690213 to your computer and use it in GitHub Desktop.
Save jackkitley/4690213 to your computer and use it in GitHub Desktop.
Route
//This isnt going to /search/all/
this.get("target").transitionTo("search.searchcontent",{filter: filter, searchvalue: searchstring});
this.resource('search', function() {
this.resource('searchcontent', { path: ':filter/:searchvalue' });
});
//ERROR
assertion failed: The route search.searchcontent was not found
//FIX? Seems to be working now
this.resource('search', function() {
//this.resource('searchcontent', { path: ':filter/:searchvalue' });
this.route('searchcontent', { path: ':filter/:searchvalue' });
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment