Pagy 10.0.0
  • GitHub
  • Issues
  • Q&A
  • Discussions
  • AI Search
Powered by

# Category: Methods

See all categories.

Methods
pagy 💚 Methods

The @pagy instance provides methods for every navigation tag and helper to use in your code.

Methods • Helpers
data_hash

data_hash extracts a hash of key-value pairs that you pluck from the pagy object. It is useful for exporting pagination

Methods • Helpers
headers_hash

headers_hash generates the standard link header defined in the RFC-8288, and adds 4 customizable headers useful for pagination, that you can merge...

Methods • Helpers
links_hash

links_hash returns the :first, :previous, :next, :last non- nil URLs hash.

Methods • Helpers
page_url

page_url returns the URL of any page of any instance. If the page is not available it returns nil.

Methods • Navs • Tags
nav_tag

nav_tag returns an HTML string containing pagination links, wrapped in a nav tag, ready to be used in your view.

Methods • Navs • Tags
nav_js_tag

nav_js_tag functions similarly to a nav_tag, with the following added features:

Methods • Navs • Tags
combo_nav_js_tag

combo_nav_js_tag combines navigation and pagination info in a single compact element.

Methods • Tags
info_tag

info_tag provides information about the content of the current pagination.

Methods • Tags
limit_selector_js_tag

The limit_selector_js_tag allows the user to select any arbitrary limit per page, up to the :requestable_limit

Methods • Tags
a_tags

The previous_a_tag and next_a_tag return the enabled/disabled previous/next page anchor tag.

© 2017-2025 Domizio Demichelis - MIT License