Replies: 6 comments 5 replies
-
|
Do you mean setting the The collection should also be ordered accordingly. |
Beta Was this translation helpful? Give feedback.
-
Wasn't setting the
That's a odd behavior for pagination. I don't remember to have thought about that possibility, so I have no idea how to do it ATM. |
Beta Was this translation helpful? Give feedback.
-
is working just fine in v9.4.0 In a calendar pagination, I believe having the most recent view first makes a lot of sense. Think about meetings (as in your calendar APP), invoices, ... without necessarily having to reverse the order. |
Beta Was this translation helpful? Give feedback.
-
|
Not really, as the param[:month_page] setting in my controller has no effect anymore in V43. I guess the parameters in Pagy are now read directly from the request? I try to set it at whatever value, but it has no impact on the active page. |
Beta Was this translation helpful? Give feedback.
-
|
I'm expanding my use case to provide year_page and month_page parameters in the URL. As such, browser URL behavior is consistent and in line with pagy. So far, this looks to be all working out well. I'll need some more time to finish. I'll report back here when ready. This is not a high-prio topic for me, so might take some time. Thanks for the support so far! |
Beta Was this translation helpful? Give feedback.
-
|
Just as a short write-up on how I updated my use case.
I have updated my use-case to reflect the actual params (month_page and year_page in my situation) in the URL. When they are not present, I set them in my controller and trigger a redirect (yes, I know, this is a performance penalty). The benefit is that the parameters are now present in the URL, and the user can navigate them. Thanks for the support! Love using pagy in my Rails app 👍 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In Pavy V43 page_ keys are no longer to be explicitly set. Using calendar sorting, by default the olders pagination result is shown. How can I show the most recent entries by default?
I used to set params[month_page] to the current month, which is now no longer working in V43
Beta Was this translation helpful? Give feedback.
All reactions