Rails offset method
Rails has a method for skipping records in a query, 'offset'. It is available through the ActiveRecord::QueryMethods
library.
User.offset(15) # generated SQL has "OFFSET 15"
The docs recommend using it with 'order'. I used the two methods today to return all blog posts, excluding the ten most recent:
Post.order('created_at desc').offset(10)
Tweet