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


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="" width="80">

<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> <%= %> </h2>
        <p> <%= dest.description %> </p>
        <%= link_to "See more", destination_path(dest) %>
            <% end %>


And the problem is..?

..oh title


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\)/


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


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


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