限制每页显示的行数

时间:2021-07-28 09:07:31

Where can I go to find a tutorial on how to limit the number of rows that rails shows in the view?

我在哪里可以找到关于如何限制rails在视图中显示的行数的教程?

A pagify option would also be cool... thanks.

pagify选项也很酷......谢谢。

4 个解决方案

#1


4  

you should visit this site https://github.com/mislav/will_paginate

你应该访问这个网站https://github.com/mislav/will_paginate

#2


4  

https://github.com/amatsuda/kaminari Kaminari A Scope & Engine based, clean, powerful, customizable and sophisticated paginator for Rails 3

https://github.com/amatsuda/kaminari Kaminari适用于Rails 3的基于范围和引擎,干净,功能强大,可定制和复杂的分页器

#3


2  

Try will_paginate gem .

尝试will_paginate gem。

https://github.com/mislav/will_paginate

#4


2  

The Ruby Toolbox is often nice to have an overview of the gems for a particular feature.

Ruby Toolbox通常很好地概述了特定功能的gem。

#1


4  

you should visit this site https://github.com/mislav/will_paginate

你应该访问这个网站https://github.com/mislav/will_paginate

#2


4  

https://github.com/amatsuda/kaminari Kaminari A Scope & Engine based, clean, powerful, customizable and sophisticated paginator for Rails 3

https://github.com/amatsuda/kaminari Kaminari适用于Rails 3的基于范围和引擎,干净,功能强大,可定制和复杂的分页器

#3


2  

Try will_paginate gem .

尝试will_paginate gem。

https://github.com/mislav/will_paginate

#4


2  

The Ruby Toolbox is often nice to have an overview of the gems for a particular feature.

Ruby Toolbox通常很好地概述了特定功能的gem。