- “Assertion Failed: You attempted to define a
{{link-to "sighting"}}
but did not pass the parameters required for generating its dynamic segments. More context objects were passed than there are dynamic segments for the route: sighting.index”
Should there be something in the routes/sighting/index.js?
This occurs when I add the sighting.id to the link-to line in templates/sightings/index.hbs.
<div class="row">
{{#each model as |sighting|}}
<div class="col-xs-12 col-sm-3 text-center">
{{#link-to "sighting" sighting.id }}
<div class="media well">
<div class="caption">
{{#if sighting.location}}
When I leave it out, the Sighting screen is blank.
I also added
<div class="container text-center">
<h3>{{model.location}}</h3>
<p>{{moment-from model.sightedAt}}</p>
</div>
to templates/sighting/index.hbs, because there was otherwise no way to show the individual sighting (I think.)
Any ideas why this assertion is failing?
Thanks!