I have the following code for my Ruby on Rails project, which outputs a list of users on a page:
<ul class="users">
<%= render @users %>
</ul>`
The result is a long list of users on the page.
My question is: How can I can I manipulate @users 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?
Aucun commentaire:
Enregistrer un commentaire