will_paginate per_page in rails3

Plugin will_paginate seems not take self.per_page (defined in model) into account, so you need to pass it explicitly, but you can simply pass :per_page => Model.per_page.

  1. by sobstel • January 2011 • blog archive