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 your search methods Javier -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.