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:>
Another easier to remember way is: Model.last(2).first
Model.last(2).first