will_paginate

https://github.com/mislav/will_paginate

Ruby

Pagination library for Rails and other Ruby applications

WillPaginate::ViewHelpers::LinkRenderer#url

Returns URL params for +page_link_or_span+, taking the current GET params
and <tt>:params</tt> option into account.

Source | Google | Stack overflow

Edit

git clone [email protected]:mislav/will_paginate.git

cd will_paginate

open lib/will_paginate/view_helpers/link_renderer.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-WillPaginate--ViewHelpers--LinkRenderer-url-for-pr


# Commit to git

git add lib/will_paginate/view_helpers/link_renderer.rbgit commit -m "better docs for WillPaginate::ViewHelpers::LinkRenderer#url"


# 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--LinkRenderer-url-for-pr

hub pull-request


# Celebrate!