Rails: how to find record before last?

后端 未结 4 1409
感情败类
感情败类 2021-01-01 12:52

I can find last record in my table like in example below, but what if I want to find record before last, e.g. (last-1) or (last-2)..? I have this example in my each loop:

4条回答
提交回复
热议问题