Associations 1 lesson #7 step 6

I am stuck on lesson #7 step 6

This is what is asked.

Finally in app/views/destinations/show.html.erb, use link_to to create a link to the destination’s edit path:

This is what I have

<%= link_to "Edit", edit_destination_path(d) %>

This is wrong.
What am I doing wrong? It is driving me crazy.

David Lee

1 Like
<%= link_to "Edit", edit_destination_path(@destination) %>

The above worked for me, you’ve not defined ‘d’ anywhere. Hopefully that helps!


This topic is outdated.