diff --git a/docs/extras/array.md b/docs/extras/array.md index ce2828d61..4ee209ecc 100644 --- a/docs/extras/array.md +++ b/docs/extras/array.md @@ -11,6 +11,12 @@ That means that you can paginate the array independently from any other kind of See [extras](../extras.md) for general usage info. +In the `pagy.rb` initializer: + +```ruby +require 'pagy/extras/array' +``` + In a controller: ```ruby diff --git a/docs/extras/bulma.md b/docs/extras/bulma.md index 319681767..2f38899e7 100644 --- a/docs/extras/bulma.md +++ b/docs/extras/bulma.md @@ -9,6 +9,12 @@ This extra adds nav helper and templates for the Bulma CSS [pagination component See [extras](../extras.md) for general usage info. +In the `pagy.rb` initializer: + +```ruby +require 'pagy/extras/bulma' +``` + Render the navigation links in some view... with a fast helper: diff --git a/docs/extras/elasticsearch_rails.md b/docs/extras/elasticsearch_rails.md index 243967e32..c95120a1b 100644 --- a/docs/extras/elasticsearch_rails.md +++ b/docs/extras/elasticsearch_rails.md @@ -9,6 +9,12 @@ Paginate `ElasticsearchRails::Results` objects efficiently avoiding expensive ob See [extras](../extras.md) for general usage info. +In the `pagy.rb` initializer: + +```ruby +require 'pagy/extras/elasticsearch_rails' +``` + In a controller: ```ruby diff --git a/docs/extras/foundation.md b/docs/extras/foundation.md index 4f5baf041..4076a8a4c 100644 --- a/docs/extras/foundation.md +++ b/docs/extras/foundation.md @@ -9,6 +9,12 @@ This extra adds nav helper and templates for the Foundation [pagination componen See [extras](../extras.md) for general usage info. +In the `pagy.rb` initializer: + +```ruby +require 'pagy/extras/foundation' +``` + Render the navigation links in some view... with a fast helper: diff --git a/docs/extras/materialize.md b/docs/extras/materialize.md index 8233c7f0d..34cf6610c 100644 --- a/docs/extras/materialize.md +++ b/docs/extras/materialize.md @@ -9,6 +9,12 @@ This extra adds nav helpers for the Materialize CSS [pagination component](https See [extras](../extras.md) for general usage info. +In the `pagy.rb` initializer: + +```ruby +require 'pagy/extras/materialize' +``` + Render the navigation links in some view... with a fast helper: diff --git a/docs/extras/searchkick.md b/docs/extras/searchkick.md index a60ff1136..978560a0f 100644 --- a/docs/extras/searchkick.md +++ b/docs/extras/searchkick.md @@ -11,6 +11,12 @@ The `Searchkick::Results` object has already done pagination calculations, we ju See [extras](../extras.md) for general usage info. +In the `pagy.rb` initializer: + +```ruby +require 'pagy/extras/searchkick' +``` + In a controller: ```ruby diff --git a/docs/extras/trim.md b/docs/extras/trim.md index fe9c6a806..040e8642d 100644 --- a/docs/extras/trim.md +++ b/docs/extras/trim.md @@ -11,8 +11,9 @@ This extra is needed only for very specific scenarios, for example if you need t See [extras](../extras.md) for general usage info. +In the `pagy.rb` initializer: + ```ruby -# in the Pagy initializer require 'pagy/extras/trim' ```