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

Problems when using meta_search + kaminari (undefined method). #49

Closed
serek opened this issue Mar 4, 2011 · 6 comments
Closed

Problems when using meta_search + kaminari (undefined method). #49

serek opened this issue Mar 4, 2011 · 6 comments

Comments

@serek
Copy link

serek commented Mar 4, 2011

Hi,

When I try to paginate on meta_search results it just tells me that there is no method like "page"

def index
  @search = Article.search(params[:search])
  @articles = @search.page params[:page]
  respond_with @articles
 end

Error is:
undefined method `page' for #MetaSearch::Searches::User:0xb55d3440

Example from meta_search gem which is working flawlessly with will_paginate is:
def index
@search = Article.search(params[:search])
@articles = @search.paginate(:page => params[:page])
respond_with @articles
end

@dewski
Copy link

dewski commented Mar 4, 2011

This happens for me as well.

@tomkrus
Copy link

tomkrus commented Mar 6, 2011

kaminari has a problem with working with other gems, for me not working with acts-as-taggable-on and acts_as_audited. A similar error.

@tyok
Copy link
Contributor

tyok commented Mar 7, 2011

@serek
Copy link
Author

serek commented Mar 7, 2011

Yes, seen that.

Although the case is still worth looking into tomkurs problems.

@dewski
Copy link

dewski commented Mar 11, 2011

I am not using metawhere and this is still happening to me.

@yuki24
Copy link
Member

yuki24 commented Jul 10, 2012

after taking a look at a question on StackOverflow, I think meta_search already plays nice together with kaminari so I'll close this issue.

@yuki24 yuki24 closed this as completed Jul 10, 2012
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