Ferret, will_paginate and group by

Hi,

Is it possible to use “find_with_ferret” and GROUP BY together?

Count(*) doesn’t return what will_paginate expects when using GROUP
BY, and AFAIK a workaround for that is to manually get total_entries
and pass it to Model.paginate.

However how does that work with find_with_ferret where I have no idea
how to find total_entries?

Is it even possible?


M.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs