Getting assertion failed on sighting link-to

  1. “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 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" }}
        <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">
  <p>{{moment-from model.sightedAt}}</p>

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?


Nevermind. The Bronze Challenge addresses making this additional page.