#177 ✓invalid

Can't use :group option in finders

Reported by javier | January 11th, 2008 @ 06:01 AM

i can't use :group => like :order =>

the object is to do an sql like this sum(enanos) as enanos * from ...

i need the GROUP BY option, suggestions?

and the link that announce the solution is down.

Comments and changes to this ticket

  • Mislav

    Mislav January 18th, 2008 @ 01:51 PM

    • State changed from “new” to “open”
    • Title changed from “:group” to “Can't use :group option in finders”
    • Assigned user changed from “Chris Wanstrath” to “Mislav”


    I need more info on this. Can you paste me the call to a paginating finder that isn't working for you? Are you getting an error? Is wrong SQL generated? What happens if you use :group option with an ordinary `find` instead of `paginate`?


  • javier

    javier January 24th, 2008 @ 03:40 PM

    look at this link,


    here said:

    Fix use of :group option with will_paginate [Mike Garey] [#29


    but the named link is down


    please some help

  • Mislav

    Mislav October 8th, 2008 @ 11:14 PM

    • State changed from “open” to “invalid”
    • Tag set to group, will_paginate

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Everyone's favorite Ruby library for pagination of practically anything!

People watching this ticket