Error in 6.5 - "Did you add link to the destination?"


#1

I have restarted exercise multiple times and read other related forums also but found no help.

Below is my code.

<div class="header">
  <div class="container">
    <img src="http://s3.amazonaws.com/codecademy-content/courses/learn-rails/img/logo-1tm.svg" width="80">
    <h1>BokenjiKan</h1>
  </div>
</div>

<div class="tag">
  <div class="container">
    <h2 class="tag-title"> <%= @tag.title %> </h2>

    <div class="cards row">

      <% @destinations.each do |dest| %>
      <div class="card col-xs-4">
        <%= image_tag dest.image %>
        <h2> <%= dest.name %> </h2>
        <p> <%= dest.description %> </p>
        <%= link_to "See more", destination_path(dest) %>
      </div>
            <% end %>
    
    </div>
    
  </div>
</div>

#2

And the problem is..?

..oh title


#3

Apparently you need to rename dest to d, because it's searching for that exact name

/link_to\s*\"See more\"\s*,\s*destination_path\(d\)/
                                                ^

#4

Thanks!! It Worked...but dont understand why 'dest' not working


#5

Just because they are looking for a match to the regex pattern above


#6

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.