Unit 4 exercice 4/7 question 4: NEED HELP WITH HTML FILE


#1

Question:
In app/views/tags/index.html.erb at line 12, iterate through each tag in the @tags array. Then for each tag, display its title and image.

index.html.erb:

<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="tags">
  <div class="container">
    <div class="cards row">
    
      <!--
      To do: Loop through tags and display each one with this HTML
      <div class="card col-xs-4">
        tag's image goes here
        <h2> tag's title goes here </h2>
      </div>
      -->

    </div>
  </div>
</div>

They ask me to do that but never teach it. I have no clue what to do...


#2

Hi Jean-S├ębastien,

Please post a link to the exercise you're on so we can help you :slight_smile:


#4

This topic is inactive.