If this is either / or a situation where you apply the code to everyone except the last user, and then some unique code only for the last user, one of the other solutions may be more appropriate.
However, it looks like you are using the same code for all users and some additional code for the last user. If this is the case, it seems more correct and more clearly states your intentions:
users.each do |u|
meagar Oct 22 '10 at 20:39 2010-10-22 20:39
source share