Pass Ruby on Rails test with wrong code?

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

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


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?


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.


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