Show a Tag part 3


#1

May someone please help me. my code is

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

#2

Hi Jamal,

Without a link to the exercise you're on and the error message you're getting, I can't be sure why you're not getting passed, but I think it's here:

I think that line should look more like:

<%= image_tag destination.image %>

:slightly_smiling:


#3

I found the answer its

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

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

<% end %>


#5

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