Associations I - 4/9 - Display all tags (4/5) - HELP!

I keep getting error: unknown attribute: title , even after re-running the code, even when tag.title part is already deleted.

Is there something wrong with my code?

<% @tags.each do |tag| %>
      <div class="card col-xs-4">
        <%= image_tag tag.image %>
        <h2> <%= tag.title %> </h2>
      <% end %>

I refreshed it and tried several ways but still get that error

4. 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.
We’ve provided CSS in app/assets/stylesheets/application.css.

Hi @r_19,

Could you please post a link to the exercise you’re on? Also, are there any other places where you try to access a tag’s title in your code?

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