Closed tscolari closed 13 years ago
+1
+1
Latest commit takes care of this. Not exactly sure when I'll get the next gem releases (1.4.x and 2.0.x) out, but it will be soonish. In the meantime, use the git repo as your source :)
Oh, and this is mainly focused on the paginate method working with search results. You can also use the page
and per
methods, but keep in mind you must be working with a search object first (don't call them on the class - that's only for ActiveRecord pagination):
Article.search('foo').page(params[:page]).per(10)
Thanks,
that was amazingly fast. I will try it out.
Mrcio
On Tue, Mar 22, 2011 at 8:38 PM, freelancing-god < reply@reply.github.com>wrote:
Oh, and this is mainly focused on the paginate method working with search results. You can also use the
page
andper
methods, but keep in mind you must be working with a search object first (don't call them on the class
that's only for ActiveRecord pagination):
Article.search('foo').page(params[:page]).per(10)
Reply to this email directly or view it on GitHub:
https://github.com/freelancing-god/thinking-sphinx/issues/192#comment_905508
Well, you were lucky enough to request this half an hour ago - others have been waiting a little longer ;)
Looks like there is no methods next_page?, first_page?. Colud you add this? They are needed for custom pagination.
Those methods are now added.
Thank you much!
Could you please make it compatible with Kaminari pagination?
will_paginate is way outdated, and doesn't play nice with rails3 cache