6.4: display the destination's image, name, and description


#1

I've spent 20 minutes cruising the solutions in this forum and still can't get my code to pass the test. The lack of useful error messages and debugging tools in this interface is a bummer. Reloading and re-trying hasn't helped.

Any tips for this one?

<div class="header">
  <div class="container">
    <img src="http://s3.amazonaws.com/codecademy-content/courses/learn-rails/img/logo-1tm.svg" width="80">
    <h1>BokenjiKan</h1>
  </div>
</div>

<div class="destination">
  <div class="container">
    <div class="row">
      <div class="col-xs-12">

        <!-- Your code here -->
        <% @destinations.each do |d| %>
        <%= image_tag @d.image %>
        <%= @d.name %>
        <%= @d.description %> 
          <% end %>
      </div>
    </div>
  </div>
</div>

#3

Sorry, I made a mistake with my first answer.
Just type https://localhost:8000/destinations/1 and you will see the error.
You don't need to loop through anything so you don't need that part. Just put @destination instead of @d, and all should work well.


#4

I can't figure this step out either, did you end up solving it?


#8

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