Currently this just makes a long list. How do I display this with 5 records per row instead of 1?
<% @tags.each do |tag| %>
<p><%= tag_search(tag) %></p>
<% end %>
currently
tag1
tag2
tag3
tag4
tag5
tag6
tag7
...
desired
tag1 tag2 tag3 tag4 tag5
tag6 tag7
I know this is really basic but I just cannot manage to find the right google search terms to get the answer on my own. Thanks!
this is what I ended up using
<table>
<% @tags.in_groups_of(4, false) do |row_tag| %>
<tr>
<% for tag in row_tag %>
<td><%= tag_search(tag) %></td>
<% end %>
</tr>
<% end %>
</table>