[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-7713":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":16,"stars30d":16,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":17,"rankGlobal":10,"rankLanguage":10,"license":18,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":21,"hasPages":21,"topics":22,"createdAt":10,"pushedAt":10,"updatedAt":30,"readmeContent":31,"aiSummary":32,"trendingCount":16,"starSnapshotCount":16,"syncStatus":33,"lastSyncTime":34,"discoverSource":35},7713,"will_paginate","mislav\u002Fwill_paginate","mislav","Pagination library for Rails and other Ruby applications","http:\u002F\u002Fgithub.com\u002Fmislav\u002Fwill_paginate\u002Fwikis",null,"Ruby",5694,858,68,42,0,64.8,"MIT License",false,"master",true,[23,24,25,26,27,28,29],"pagination","pagination-library","plugin","rails","ruby","sequel","sinatra","2026-06-12 04:00:35","# 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', '~> 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:\u002F\u002Fwww.ruby-toolbox.com\u002Fcategories\u002Fpagination)\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 %>\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:\u002F\u002Fgithub.com\u002Fmislav\u002Fwill_paginate\u002Fwiki\n[install]: https:\u002F\u002Fgithub.com\u002Fmislav\u002Fwill_paginate\u002Fwiki\u002FInstallation \"will_paginate installation\"\n[issues]: https:\u002F\u002Fgithub.com\u002Fmislav\u002Fwill_paginate\u002Fissues\n[css]: http:\u002F\u002Fmislav.github.io\u002Fwill_paginate\u002F\n","will_paginate 是一个为 Ruby on Rails 及其他 Ruby 应用程序设计的分页库。其核心功能是提供简洁易用的 API 以实现数据分页，支持 ActiveRecord、Sequel 等多种 ORM，并且可以轻松集成到 Sinatra 和 Hanami::View 中。通过简单的配置即可设置每页显示的条目数量，同时提供了灵活的方法来定制分页链接的样式。尽管目前处于维护模式不再添加新特性，但 will_paginate 依然是需要在 Ruby 应用中快速实现稳定分页功能场景的理想选择。",2,"2026-06-11 03:13:57","top_language"]