will_paginate

https://github.com/mislav/will_paginate

Ruby

Pagination library for Rails, Sinatra, Merb, DataMapper, and more

WillPaginate::ViewHelpers::LinkRendererBase#prepare

* +collection+ is a WillPaginate::Collection instance or any other object
  that conforms to that API
* +options+ are forwarded from +will_paginate+ view helper

Source | Google | Stack overflow

Edit

$ git clone [email protected]:mislav/will_paginate.git
$ cd will_paginate
$ open lib/will_paginate/view_helpers/link_renderer_base.rb

Contribute

# Make a new branch
$ git checkout -b -your-name--update-docs-WillPaginate--ViewHelpers--LinkRendererBase-prepare-for-pr

# Commit to git
$ git add lib/will_paginate/view_helpers/link_renderer_base.rb
$ git commit -m "better docs for WillPaginate::ViewHelpers::LinkRendererBase#prepare"

# Open pull request
$ gem install hub # on a mac you can `brew install hub`
$ hub fork
$ git push <your name> -your-name--update-docs-WillPaginate--ViewHelpers--LinkRendererBase-prepare-for-pr
$ hub pull-request

# Celebrate!