5/9 - Show a tag

I have this error in my code. I’ve tried search here, in the Forum, but I didn’t found the answer.


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

Message Error:
undefined method `image_destination’ for #<#Class:0x000000053e8bb8:0x0000000544fe58>

Hi Sandro,

  1. You need to use <%= image_tag ... %>, not image_destination.
  2. Inside your loop, use destination to show the name and description, not @destinations.

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