Pass Ruby on Rails test with wrong code?


#1
<div class="destination">
  <div class="container">
    <div class="row">
      <div class="col-xs-12">
        <%= image_tag @destination.image %>
        <h2><%= @destination.name %></h2>
        <p><%= @destination.description %></p>
        <%= link_to "Edit", edit_destination_path(@destination) %>
      </div>
    </div>
  </div>
</div>

The above does not contain what the instructions specify (see below) but passes:

3.

In app/views/tags/show.html.erb inside the <h2> element, display a tag’s title.

Then in <div class="cards">...</div> , iterate through each destination in the @destinations array and display its image, name, and description.

Does this happen frequently?


#2

Hi @nicholastoyoda419753,

Could you please post a link to the exercise you’re on? It shouldn’t pass you if you don’t do what the instructions say to do.


#3

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