Comments (3)
@edeesis So, what would you need the pagy object for, if you already know that the items to paginate would be none?
If you really need a pagy object with no items, you can pass count: 0
and you will get the pagy
and items
set to what you are asking, and skip the query.
from pagy.
@edeesis Is this still an issue after my previous comment?
from pagy.
Hey. I'll go ahead and close this. We ended up working around it in our own way.
Thanks!
from pagy.
Related Issues (20)
- Plain ruby file that can run as `ruby my-problem.rb` HOT 1
- Update build badge on README.md
- Release-gem workflow glitch HOT 1
- Update js build command
- Docs: Add id pagination suggestion in HowTo
- Docs: Tailwind template example HOT 3
- Docs: Add How To entry for "Paginate multiple collections in the same action" HOT 2
- Docs: Add How To entry for "Customize the displayed text" HOT 1
- Docs: Typo on I18n Extra page HOT 1
- Docs: Arel extra is missing from pagy.rb HOT 2
- Bug: Pagy seems to ignore #limit scope HOT 6
- Docs: Add better description for nav_js blocks HOT 1
- Docs: Update AJAX doc HOT 6
- Bug: include Pagy::Console throws can't modify frozen Hash HOT 7
- Bug: Cannot load such file HOT 1
- Bug: "warning: the following paths have collided" when cloning the repo HOT 2
- Bug: Inconsistent Pagination Behavior with Specific Pagy Size Configuration HOT 6
- Docs: No documentation on how to set items per page in tests HOT 4
- Invalid count HOT 3
- `pagy_bootstrap_nav_js` not working - others are HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pagy.