For Loop

If I have a loop, let's say:

<% for user in @users %>   <tr>     <td><%= link_to "#{user.his_uid}", :action => 'show', :id => user %></td>     <td><%= link_to "#{user.his_uid}", :action => 'show', :id => user %></td>   </tr> <% end %>

How can I get the second #{user.his_uid} to be the second object in the list? Is there a method for this (object.next) or a special way of making two columns tables?

Thanks in advance, LP

Have a look at in_groups_of:

http://api.rubyonrails.com/classes/ActiveSupport/CoreExtensions/Array/Grouping.html

Thank you Greg! Exactly what I needed.