chrisboyle / cbn

Rails 2.x project for my own site
http://chris.boyle.name/projects/cbn
MIT License
1 stars 0 forks source link

Pagination #11

Closed chrisboyle closed 14 years ago

chrisboyle commented 14 years ago

All the "index" actions need pagination. Ideally I'd like this to be based on date rather than page number, so ?before=20090426T123456Z (or ?after=...) would work. Previous/next links based on these have the advantage that you can read forwards (i.e. what would be decreasing values of N in ?page=N) without accidentally skipping an entry if a new entry is posted during your reading, because you ask for the next 20 after this datetime, not LIMIT 20 OFFSET N*20 (which is a moving target).

chrisboyle commented 14 years ago

Fixed by commit dc61554d12792a28a09eccf095e255bddb2b38fb.