Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 13:29

    ddnexus on master

    Minor docs changes [ci skip] (compare)

  • 11:48

    ddnexus on metadata

    (compare)

  • 11:47

    ddnexus on dev

    version 3.5.0 Merge branch 'dev' (compare)

  • 11:47

    ddnexus on master

    Add translation ko.yml for kore… added minitest-reporters gem temporarily removed jruby 1. an… and 5 more (compare)

  • 11:46

    ddnexus on 3.5.0

    version 3.5.0 Merge branch 'dev' (compare)

  • 11:27
    ddnexus labeled #177
  • 11:27
    ddnexus labeled #176
  • 11:27
    ddnexus closed #177
  • 11:27
    ddnexus commented #177
  • 11:27
    ddnexus closed #176
  • 11:27
    ddnexus commented #176
  • 11:23

    ddnexus on dev

    added metadata extra Docs: - added detailed Quick S… (compare)

  • 10:15
    ddnexus labeled #178
  • 10:14
    ddnexus commented #178
  • 10:14

    ddnexus on dev

    Add Catalan localization (#178) (compare)

  • 10:14
    ddnexus closed #178
  • 10:13
    ddnexus edited #178
  • 02:13
    AbelToy opened #178
  • Aug 16 05:57
    BKSpurgeon opened #177
  • Aug 16 05:49
    BKSpurgeon opened #176
Domizio Demichelis
@ddnexus
the link gives you the full html
the url just the ... url, so you can compose your own button, if you want a button
but why you don'use a link?
you can style the link as a button
Tristan Sharma
@tristan-sharma
Is there an advantage to doing so?
Domizio Demichelis
@ddnexus
yes: button are usually for posting forms
Tristan Sharma
@tristan-sharma
Okay. I can do that then.
Domizio Demichelis
@ddnexus
try to use a button or a link and you will notice
Tristan Sharma
@tristan-sharma
I just did <button href = <%pagy_prev_url(@pagy)%>> </button> to try the pagy_prev_url.
But it doesn't work.
Domizio Demichelis
@ddnexus
indeed :)
a button is not a link
Tristan Sharma
@tristan-sharma
Alright so I did <link href = <%pagy_prev_url(@pagy)%>> </link>.
Domizio Demichelis
@ddnexus
why?
Tristan Sharma
@tristan-sharma
Oh wait.
Domizio Demichelis
@ddnexus
:)
Tristan Sharma
@tristan-sharma
<a href = <%pagy_prev_url(@pagy)%>> </a>
Domizio Demichelis
@ddnexus
just do <%== pagy_prev_link(@pagy)%>
and you are missing the ==
Tristan Sharma
@tristan-sharma
<a href = <%==pagy_prev_url(@pagy)%>> </a>
Domizio Demichelis
@ddnexus
yes, but if you use the <%== pagy_prev_link(@pagy)%> it will take care of the whole thing
there is one extra > in your previous code, and missing ""
Tristan Sharma
@tristan-sharma
So just doing <%== pagy_prev_link(@pagy)%> gives me the error: undefined methodpagy_prev_link' for #<#<Class:0x00007fd719691200>:0x00007fd719699360>`.
Domizio Demichelis
@ddnexus
nope. sorry... no extra >
read the doc!
gotta go now
Tristan Sharma
@tristan-sharma
Wait :(
PLEASE...
I read this. I don't know why I am getting this error
Domizio Demichelis
@ddnexus
that's a good occasion to learn
;)
Tristan Sharma
@tristan-sharma
Please...
Can you at least tell me why I am getting the error?
I did require 'pagy/extras/support' in my initializer and it is still happening...
Domizio Demichelis
@ddnexus
did you read and check what is in the Quick Start?
sorry, but I don't have more time for today
Tristan Sharma
@tristan-sharma
Yes, I did check.
Domizio Demichelis
@ddnexus
then you missed something
Tristan Sharma
@tristan-sharma
I couldn't have, as the other Pagy methods were working just fine for me earlier.
And I am reading it again and I did all of this.
Tristan Sharma
@tristan-sharma
;-[
Tristan Sharma
@tristan-sharma
If anyone wants to help with this I would appreciate it/.
Tristan Sharma
@tristan-sharma
@ddnexus Please ;(
Tristan Sharma
@tristan-sharma
Hi @ddnexus are you there?
Tristan Sharma
@tristan-sharma
How do I handle paginating when I have AJAX requests changing my data and thus how the pagination appears in my view?
For example, if I toggle a button to "ON" on page 1, thus updating its state in the database to "ON", then go to page two and back to page one, the button will appear as though unclicked.
Pretty much what I am asking is how to make Pagy redo the pagination every time you go forward or backward?
Tristan Sharma
@tristan-sharma
Nevermind I got it.
Domizio Demichelis
@ddnexus
Not sure to understand your specific description, but the "Stateful Tabs with Pagy" post linked in the README might give you some nice ideas about how to keep states