Skip to content

Instantly share code, notes, and snippets.

@shenst1
Last active August 29, 2015 14:22
Show Gist options
  • Save shenst1/280afff7c38d90286867 to your computer and use it in GitHub Desktop.
Save shenst1/280afff7c38d90286867 to your computer and use it in GitHub Desktop.
Uncaught Error: More context objects were passed than there are dynamic segments for the route: dataset.index
{{#each organization in model }}
{{#each dataset in organization.datasets }}
{{#link-to 'dataset' organization dataset class="btn btn-success"}}View Content{{/link-to}}
{{/each}}
{{/each}}
// The page doesn't load and I get the error:
//Uncaught Error: More context objects were passed than there are dynamic segments for the route: dataset.index
//I'm passing in two paramaters for a route with two dynamic segments. What is wrong?
this.route('organization', { path: 'organizations/:organization_id' }, function() {
this.route('edit');
});
this.route('datasets', { path: 'organizations/:organization_id/datasets'}, function() {
this.route('new');
});
this.route('dataset', { path: 'organizations/:organization_id/datasets/:dataset_id'}, function() {
this.route('edit');
});
this.route('types', { path: 'organizations/:organization_id/datasets/:dataset_id/types'}, function() {
this.route('new');
});
this.route('type', { path: 'organizations/:organization_id/datasets/:dataset_id/types/:type_id'}, function() {
this.route('edit');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment