{"id":13462936,"url":"https://github.com/mislav/will_paginate","last_synced_at":"2025-10-08T17:19:33.555Z","repository":{"id":384009,"uuid":"1227","full_name":"mislav/will_paginate","owner":"mislav","description":"Pagination library for Rails and other Ruby applications","archived":false,"fork":false,"pushed_at":"2024-06-10T09:07:53.000Z","size":1071,"stargazers_count":5709,"open_issues_count":43,"forks_count":866,"subscribers_count":70,"default_branch":"master","last_synced_at":"2025-05-07T21:15:09.339Z","etag":null,"topics":["pagination","pagination-library","plugin","rails","ruby","sequel","sinatra"],"latest_commit_sha":null,"homepage":"http://github.com/mislav/will_paginate/wikis","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mislav.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2008-02-25T20:21:40.000Z","updated_at":"2025-05-07T12:16:36.000Z","dependencies_parsed_at":"2023-07-05T14:44:34.305Z","dependency_job_id":"c7597e71-6d3d-4796-9676-9b6727226401","html_url":"https://github.com/mislav/will_paginate","commit_stats":{"total_commits":724,"total_committers":73,"mean_commits":9.917808219178083,"dds":"0.32734806629834257","last_synced_commit":"8aa3a87022e4c17cb6ebf2ec0c9467bcdfd76b18"},"previous_names":[],"tags_count":53,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mislav%2Fwill_paginate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mislav%2Fwill_paginate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mislav%2Fwill_paginate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mislav%2Fwill_paginate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mislav","download_url":"https://codeload.github.com/mislav/will_paginate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253061786,"owners_count":21847802,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pagination","pagination-library","plugin","rails","ruby","sequel","sinatra"],"created_at":"2024-07-31T13:00:41.415Z","updated_at":"2025-10-08T17:19:28.520Z","avatar_url":"https://github.com/mislav.png","language":"Ruby","funding_links":[],"categories":["Active Record Plugins","Ruby","Pagination"],"sub_categories":["Pagination"],"readme":"# will_paginate\n\nwill_paginate is a pagination library that integrates with Ruby on Rails, Sinatra, Hanami::View, and Sequel.\n\n``` ruby\ngem 'will_paginate', '~\u003e 4.0'\n```\n\nSee [installation instructions][install] on the wiki for more info.\n\nℹ️ will_paginate is now in _maintenance mode_ and it will not be receiving new features. [See alternatives](https://www.ruby-toolbox.com/categories/pagination)\n\n## Basic will_paginate use\n\n``` ruby\n## perform a paginated query:\n@posts = Post.paginate(page: params[:page])\n\n# or, use an explicit \"per page\" limit:\nPost.paginate(page: params[:page], per_page: 30)\n\n## render page links in the view:\n\u003c%= will_paginate @posts %\u003e\n```\n\nAnd that's it! You're done. You just need to add some CSS styles to [make those pagination links prettier][css].\n\nYou can customize the default \"per_page\" value:\n\n``` ruby\n# for the Post model\nclass Post\n  self.per_page = 10\nend\n\n# set per_page globally\nWillPaginate.per_page = 10\n```\n\nNew in Active Record 3:\n\n``` ruby\n# paginate in Active Record now returns a Relation\nPost.where(published: true).paginate(page: params[:page]).order(id: :desc)\n\n# the new, shorter page() method\nPost.page(params[:page]).order(created_at: :desc)\n```\n\nSee [the wiki][wiki] for more documentation. [Report bugs][issues] on GitHub.\n\nHappy paginating.\n\n\n[wiki]: https://github.com/mislav/will_paginate/wiki\n[install]: https://github.com/mislav/will_paginate/wiki/Installation \"will_paginate installation\"\n[issues]: https://github.com/mislav/will_paginate/issues\n[css]: http://mislav.github.io/will_paginate/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmislav%2Fwill_paginate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmislav%2Fwill_paginate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmislav%2Fwill_paginate/lists"}