8000 No pagination links are appearing · Issue #1134 · kaminari/kaminari · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
No pagination links are appearing #1134
Open
@skillmatic-co

Description

@skillmatic-co

Hello,

Trying to search docs and/or past issues, but when you are using .includes, do you have to do anything special?

I have a query like:

@registries_with_requested_transfers = Registry.includes(:transfers, :orders).where(:transfers => {requested: true, issued: false}).order('transfers.requested_at DESC').page(params[:page]).per(5)

But in my view when I put <%= paginate @registries_with_requested_transfers %> nothing is appearing. However if I manually go to page 2 by putting ?page=2 in the URL, it's successfully giving me page 2 results.

@registries_with_requested_transfers.count returns 30, so I definitely have enough results to page through.

Any idea what's happening here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0