will_paginate
https://github.com/mislav/will_paginate
Ruby
Pagination library for Rails and other Ruby applications
WillPaginate::ViewHelpers::LinkRenderer#to_html
Process it! This method returns the complete HTML string which contains pagination links. Feel free to subclass LinkRenderer and change this method as you see fit.
Edit
git clone git@github.com:mislav/will_paginate.git
cd will_paginate
open lib/will_paginate/view_helpers/link_renderer.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-WillPaginate--ViewHelpers--LinkRenderer-to_html-for-pr
# Commit to gitgit add lib/will_paginate/view_helpers/link_renderer.rbgit commit -m "better docs for WillPaginate::ViewHelpers::LinkRenderer#to_html"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-WillPaginate--ViewHelpers--LinkRenderer-to_html-for-pr
hub pull-request
# Celebrate!