i'm very new to rails and html and i'm not sure why this piece of code is printing an array of data that i didn't ask for at the bottom of my web page. I need help with getting rid of them from my web page.
show.html.erb
<table>
<tr>
<th>Name</th>
</tr>
<%= @category.products.each do |product| %>
<tr>
<td><%= product.id %></td>
<td><%= product.size %></td>
<td><%= product.name %></td>
</tr>
<% end %>
</table>
<%= @category.products.each do |product| %>
<h3><%= product.id %></h3>
<h3><%= product.size %></h3>
<h3><%= product.name %></h3>
<% end %>
screenshot of the website here, red arrows are pointing to the unwanted data
Any help would be greatly appreciated, thanks.