With :limit in query, I will get first N records. What is the easiest way to get last N records?
:limit
Just try:
Model.order("field_for_sort desc").limit(5)