Skip to content

undefined method `page' - will_paginate #239

@mmahalwy

Description

@mmahalwy

Keep getting this error:

NoMethodError: undefined method 'page' for #<Elasticsearch::Model::Response::Response:0x007fe3107f2c90>

With will_paginate 3.0.6

My query:

Quran::Ayah.search("allah").page(2)

This works:

Quran::Ayah.page(2)

Also, for some reason ES is not exposing Elasticsearch::Model::Response::Results

2.1.2 :049 > ap Content::Translation.search("allah").results.current_page
NoMethodError: undefined method `current_page' for #<Elasticsearch::Model::Response::Response:0x007f915c656888>
2.1.2 :050 > ap Content::Translation.search("allah").current_page.results
NoMethodError: undefined method `current_page' for #<Elasticsearch::Model::Response::Response:0x007f915d7a39d8>

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