Forum: Ruby on Rails group by?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
rosoft2001 (Guest)
on 2007-05-11 07:36
(Received via mailing list)
How can you add an "group by title" clause to:

@books_pages, @books = paginate (:books, :conditions => ['keyid = ?',], :order => 'id DESC',  :per_page => 10 )

Camo (Guest)
on 2007-05-11 09:36
(Received via mailing list)
Hey there mate,

Go to i think there is a quick 4 min viedo on it, that
should help
Alain R. (Guest)
on 2007-05-11 14:39
(Received via mailing list)
You just sent him to a spam search page :(

Correct url:

Alain R.
Scott (Guest)
on 2007-05-12 01:44
(Received via mailing list)
If I am not mistaken, with pagination you should be able to use all
the parameters that you would on a find. So you could use the :group

@books_pages, @books = paginate (:books, :conditions => ['keyid = ?',], :order => 'id DESC',  :per_page => 10, :group => "title" )

Cliff R. (Guest)
on 2007-05-12 12:05
(Received via mailing list)
> Correct url:

Just watched a few of the railscasts.  Most productive 20 minutes I've
in the past 2 weeks :-)
This topic is locked and can not be replied to.