rails : find 查找一个表中的前5条,后5条记录?
[code="ruby"]User.find(:all, :limit => 5)#前5条User.find(:all, :limit => 5, :order => "id DESC") #后5条[/code]
nodnod