database query and loops

h3avyarms
2009-10-29T00:23:43Z

Quick question, for example if you have in your controller:

@users = User.all
for user in @users
  # blah blah blah
end

what is the best and most strait forward method to find out if you
have reached the last user in @users?