Awesome, Pat! You made my day :D best, etienne On Mar 22, 7:44 pm, Pat Allan <[email protected]> wrote: > Hi Etienne > > Just so you're aware, the latest TS (in Github - not yet a gem release) > supports Kaminari. Pagination works fine, but if you want to use the #page > and #per methods, make sure you're dealing with a search object first > (instead of the model). > > So this works: > > Article.search('foo').page(params[:page]).per(10) > > But this doesn't: > > Article.page(params[:page]).per(10).search('foo') > > Cheers > > -- > Pat > > On 20/03/2011, at 11:26 AM, etienne pelaprat wrote: > > > > > > > > > hi Pat, > > > sounds good! I hope to see it in an upcoming release :D Until then > > I'll use will_paginate. > > > etienne > > > On Mar 20, 1:02 pm, Pat Allan <[email protected]> wrote: > >> Hi Etienne > > >> At this point, TS only supports will_paginate and manual pagination... but > >> you're not the first to ask for this, and it's on my list of things to do. > >> I don't want to make any promises about a timeline, though. It could be > >> within a few days, it could be a few weeks. > > >> -- > >> Pat > > >> On 20/03/2011, at 9:20 AM, etienne pelaprat wrote: > > >>> Hi again, > > >>> I'm using kaminari for pagination. > > >>> https://github.com/amatsuda/kaminari > > >>> and > > >>> http://railscasts.com/episodes/254-pagination-with-kaminari > > >>> Is there any way to get TS to work with kaminari? Or is will_paginate > >>> the only pagination gem supported? > > >>> etienne > > >>> -- > >>> You received this message because you are subscribed to the Google Groups > >>> "Thinking Sphinx" group. > >>> To post to this group, send email to [email protected]. > >>> To unsubscribe from this group, send email to > >>> [email protected]. > >>> For more options, visit this group > >>> athttp://groups.google.com/group/thinking-sphinx?hl=en. > > > -- > > You received this message because you are subscribed to the Google Groups > > "Thinking Sphinx" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group > > athttp://groups.google.com/group/thinking-sphinx?hl=en.
-- You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/thinking-sphinx?hl=en.
