will_Paginate参数说明

```bash ruby u=User.paginate(:page => 1);

u.total_entries  #共有多少条 => 1527 u.per_page  #每页显示几条 => 30 u.total_pages #共有几页 => 51 u.current_page  #当前在哪一页 => 1



参考:[https://github.com/mislav/will_paginate/wiki/API-documentation](https://github.com/mislav/will_paginate/wiki/API-documentation)

Comments