From 09ebef259e0451e03908fbce38034a916a364c51 Mon Sep 17 00:00:00 2001 From: Loudghiri Ahmed Date: Fri, 16 Feb 2024 20:09:48 +0100 Subject: [PATCH] Update add_pagination_links.md to add specific instruction for will_paginate gem --- docs/howto/add_pagination_links.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/howto/add_pagination_links.md b/docs/howto/add_pagination_links.md index e27923836..2b41608cd 100644 --- a/docs/howto/add_pagination_links.md +++ b/docs/howto/add_pagination_links.md @@ -128,7 +128,7 @@ def meta_attributes(collection, extra_meta = {}) next_page: collection.next_page, prev_page: collection.prev_page, # use collection.previous_page when using will_paginate total_pages: collection.total_pages, - total_count: collection.total_count + total_count: collection.total_count # use collection.total_entries when using will_paginate }.merge(extra_meta) end ```