Will_paginate

Pagination library for Rails and other Ruby applications
Alternatives To Will_paginate
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Kaminari8,38745,1056178 days ago54December 25, 202162mitRuby
⚡ A Scope & Engine based, clean, powerful, customizable and sophisticated paginator for Ruby webapps
Will_paginate5,68444,8005114 days ago38August 12, 202139mitRuby
Pagination library for Rails and other Ruby applications
Pagy4,114130354 days ago147February 03, 20225mitRuby
🏆 The Best Pagination Ruby Gem 🥇
Api Pagination653329142 years ago32October 26, 202123mitRuby
:page_facing_up: Link header pagination for Rails and Grape APIs.
Wice_grid53120855 years ago45November 29, 201845mitRuby
A Rails grid plugin to create grids with sorting, pagination, and (automatically generated) filters
Order_query49071a year ago16December 16, 20214otherRuby
Find next / previous Active Record(s) in one query
Jsonapi.rb211415 months ago27February 17, 202114mitRuby
Lightweight, simple and maintained JSON:API support for your next Ruby HTTP API.
Bootstrap Helper201
2337 years ago19December 24, 201318Ruby
Twitter Bootstrap Helper for Rails, support will_paginate & simple_form template
Tog129
113 years ago11August 10, 20141mitRuby
Base gem that bootstrap tog platform configuration in a Rails app
Dry_scaffold125
13 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
Readme

will_paginate

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
end

# 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
Plugin
Ruby On Rails
Wiki
Pagination
Paginate
Sinatra
Hanami