Pagination library for Rails and other Ruby applications
Alternatives To Will_paginate
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Kaminari8,43045,10563710 hours ago54December 25, 202163mitRuby
⚡ A Scope & Engine based, clean, powerful, customizable and sophisticated paginator for Ruby webapps
Will_paginate5,68444,8005194 months ago38August 12, 202139mitRuby
Pagination library for Rails and other Ruby applications
Pagy4,1901304717 hours ago152May 04, 20237mitRuby
🏆 The Best Pagination Ruby Gem 🥇
Api Pagination653329142 years ago32October 26, 202123mitRuby
:page_facing_up: Link header pagination for Rails and Grape APIs.
Wice_grid53120856 years ago45November 29, 201845mitRuby
A Rails grid plugin to create grids with sorting, pagination, and (automatically generated) filters
Order_query490712 years ago16December 16, 20214otherRuby
Find next / previous Active Record(s) in one query
Jsonapi.rb211419 months ago27February 17, 202114mitRuby
Lightweight, simple and maintained JSON:API support for your next Ruby HTTP API.
Bootstrap Helper201
2338 years ago19December 24, 201318Ruby
Twitter Bootstrap Helper for Rails, support will_paginate & simple_form template
114 years ago11August 10, 20141mitRuby
Base gem that bootstrap tog platform configuration in a Rails app
14 years ago15August 11, 201416mitRuby
Rails: A Rails scaffold generator that generates DRYer, cleaner, and more useful code. IMPORTANT: Not maintained anymore.
Alternatives To Will_paginate
Select To Compare

Alternative Project Comparisons


will_paginate is a pagination library that integrates with Ruby on Rails, Sinatra, Hanami::View, and Sequel.

gem 'will_paginate', '~> 4.0'

See installation instructions on the wiki for more info.

ℹ️ will_paginate is now in maintenance mode and it will not be receiving new features. See alternatives

Basic will_paginate use

## perform a paginated query:
@posts = Post.paginate(page: params[:page])

# or, use an explicit "per page" limit:
Post.paginate(page: params[:page], per_page: 30)

## render page links in the view:
<%= will_paginate @posts %>

And that's it! You're done. You just need to add some CSS styles to make those pagination links prettier.

You can customize the default "per_page" value:

# for the Post model
class Post
  self.per_page = 10

# set per_page globally
WillPaginate.per_page = 10

New in Active Record 3:

# paginate in Active Record now returns a Relation
Post.where(:published => true).paginate(:page => params[:page]).order('id DESC')

# the new, shorter page() method
Post.page(params[:page]).order('created_at DESC')

See the wiki for more documentation. Report bugs on GitHub.

Happy paginating.

Popular Pagination Projects
Popular Ruby On Rails Projects
Popular User Interface Components Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Ruby On Rails