FAQ: Associations I - Display all tags

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

This one worked fine

1 Like