title: How do I output the contents of a variable in grid form?
body: <p>I have the following code for my Ruby on Rails project, which outputs a list of users on a page:</p>
  
  <pre><code>&lt;ul class="users"&gt;
    &lt;%= render @users %&gt;
  &lt;/ul&gt;`
  </code></pre>
  
  <p>The result is a long list of users on the page.</p>
  
  <p>My question is: How can I manipulate <code>@users</code> so that I can output its content in grid form (e.g., a row of 5 users and then next row and then next and so on) on the page? Thanks.</p>