User.find_each

User.find_each(:conditions=>["id >? and id <?",2,10] ) do |u|
ruby-1.9.2-p0 >     puts u.class
ruby-1.9.2-p0 ?>  end


原文地址:https://www.cnblogs.com/lexus/p/1948354.html