Topic: flexible pagination


I'm trying to convert a xml/xlrt siet to a Ruby on Rails site.
One thing I have not find a answer for.

On that site I have a pagination with a non fixed number of articles on a page.
The number of articles on a page is based on the date (year and month) and the page that must be displayed.

Can this be done in RoR.
I have seen examples of pagination but they are all based on a fixed number.