I have a Rails API app. I use Pagy nicely and works perfectly. However, I would like to call the same route|service|endpoint for getting all records, ...
I have a Rails API app. I use Pagy nicely and works perfectly. However, I would like to call the same route|service|endpoint for getting all records, ...
Say I have a books table that has id and name columns and a has_many book_ratings association. The book_ratings table has id, rating, rating_date, and ...
In my Rails 7 app I'm fetching the data from external API. Example response from that API looks like below: Now I need to create an endpoint to ret ...
In my Rails 7 app I'm using Pagy gem for pagination. The pagination works well but now I want to give the user the ability to choose how many items th ...
I am using pagy gem for pagination and turbo frames for interactive CRUD operations in my application. I want to update pagination and list item fram ...
I have two different tables on one page and I want to use pagy on each of them. For sorting/searching I changed names of each pagy object so I did it ...
I am trying to use pagy gem but I am getting no method error. In my controller, I previously have but since I want to use Pagy, I changed it to ...
I have a Rails app that I have upgraded from Rails 6 to 7 app. In previous version I was using will_paginate gem (v. 3.3.1) and Bootstrap 3. Now I hav ...
@pagy is returning nil in my view (#<NoMethodError: undefined method 'pages' for nil:NilClass>). It works as expected in the console: > @pa ...
i got this problem: undefined method `model_name' for #Array:0x00007f3e929cc430 here is my data_controller.rb: here is my application_cont ...
I'm using Searchkick with the Pagy gem to paginate my search results and it works great if I'm only searching and paginating on one model, but I can't ...
I am using Rails, Bulma css framework, and pagy gem. <nav class="pagination"> <span class="" style=" margin-left:auto; margin-right:auto; fo ...
How to set the maximum number of items that can be downloaded. I set: in config/initializers/pagy.rb. Nevertheless, if I enter the address localh ...
I'm trying to replace ?page= with /page/2 for all paginated pages in my Rails 6 application, so that I can be able to use Page Caching according to th ...
I have an index view with 45 products and 3 pages. I'm using pagy_array like : @pagy, @products = pagy_array(products, items: 20) If I delete 6 prod ...
I get a pg result with a postgres query like And some variables and my loop How to keep consistent loop index across pages ? ...