[Rails] Re: Re: Write/Display AR query as Grouped Results?
Jean-François
jf.web3 at gmail.com
Mon Apr 10 00:47:37 GMT 2006
Hello Jeff,
> Jean-François wrote:
> > Hi Chris,
> >> Is that new for 1.1? Very cool. Any documentation on it? I looked at
> >> api.rubyonrails.com but didnt see it listed there.
> >
> > See :
> > http://weblog.rubyonrails.org/articles/2006/03/01/new-in-rails-enumerable-group_by-and-array-in_groups_of
> >
> > and r3726.
> >
> I noticed that too, but I am also curious about where is the actual
> documetation for it?
You're right, there isn't :)
> What module contains groups_by, and is there a
> proper RDoc for it?
It's an add-on for the module Enumerable so it's in ActiveSupport, in
activesupport-xx/lib/active_support/core_ext/enumerable.rb
and you will see in the first line of the file :
module Enumerable #:nodoc:
The news or the source are the documentation.
-- Jean-François.
--
À la renverse.
More information about the Rails
mailing list