Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kaminari pagination does not work #98

Open
dev888 opened this issue Nov 23, 2013 · 10 comments
Open

kaminari pagination does not work #98

dev888 opened this issue Nov 23, 2013 · 10 comments

Comments

@dev888
Copy link

dev888 commented Nov 23, 2013

Got this error:

undefined method `page' for :Class

@dev888
Copy link
Author

dev888 commented Nov 23, 2013

Class was defined like this:

class TestClass < ParseResource::Base

end

@adelevie
Copy link
Owner

Can you please post the code that triggered the error?

Sent from my iPhone

On Nov 23, 2013, at 3:10 AM, dev888 notifications@github.com wrote:

Got this error:

undefined method `page' for :Class


Reply to this email directly or view it on GitHub.

@dev888
Copy link
Author

dev888 commented Nov 23, 2013

Here it is:

t = TestModel.page(2).per(3).where(:test_field => 2)

@adelevie
Copy link
Owner

Hmm...is kaminari properly installed?

On Nov 23, 2013, at 4:19 PM, dev888 notifications@github.com wrote:

Here it is:

t = TestModel.page(2).per(3).where(:test_field => 2)


Reply to this email directly or view it on GitHub.

@dev888
Copy link
Author

dev888 commented Nov 23, 2013

Yep, the gem is installed and specified in the Gemfile. Also 'bundle show kaminari' shows that it's installed.

Can you not reproduce this?

@desmondhume
Copy link

I'm having the same problem, anyone solved this?

@desmondhume
Copy link

I solved this issue by using an older version of kaminari, 0.14.1.

@jcohenho
Copy link

I have the same problem, even with the older version of kaminari, 0.14.1. Any other ideas?

@l4u
Copy link

l4u commented Sep 25, 2014

Try parse_resource at HEAD

@jcohenho
Copy link

That worked thanks

On Wednesday, September 24, 2014, Leo Lou notifications@github.com wrote:

Try parse_resource at HEAD


Reply to this email directly or view it on GitHub
#98 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants