With :limit in query, I will get first N records. What is the easiest way to get last N records?
:limit
new way to do it in rails 3.1 is SomeModel.limit(5).order('id desc')
SomeModel.limit(5).order('id desc')