Pagy 43.0.0-pre.1
  • GitHub
  • Issues
  • Q&A
  • Discussions
Powered by

# Category: Helpers

See all categories.

Helpers
@pagy.✳ Helpers

The @pagy instance provides all the helpers 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
urls_hash

urls_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.

© 2017-2025 Domizio Demichelis - MIT License