5.3 - Show a tag - "In the view, did you display the tag's title?"

As far as I can tell I have my code correct (at least it seems to be working), but for some reason I continue to receive the error message “In the view, did you display the tag’s title?”. Any help would be greatly appreciated.

Here is the code I’ve inserted into app/views/tags/show.html.erb

      <% @destinations.each do |d| %>
        <div class="card col-xs-4">
          <%= image_tag d.image %>
          <h2><%= d.name %> </h2> 
          <p><%=  d.description %></p>  
      <% end %>

Here is a screenshot of it working in the browser, but showing an error message.

Hi Auryn,

I think that step is really two steps, even though it sort of looks like one. Try displaying the tags title on line 10, and see if that works :slight_smile:

Ah yes, you are correct. Thanks very much for pointing that out.

1 Like

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