[Rails] Re: Re: mark multiple results
Javier Quarite wrote in post #1076666:
> Maybe this helps:
>
> http://api.rubyonrails.org/classes/Enumerable.html#method-i-group_by
> http://railscasts.com/episodes/29-group-by-month
>
> You may do @users.group_by(&:id) ... but I'm not sure what you have in
>
Each user has a unique id, so what does that get you? Groups with one
user per group.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home