Hi... I have a query @users = User. ..some finding code
<% @users.each do |u| %> <li><%= u.user_id %><%= u.user.name %></li> Result is something like this: • 1 fred • 1 fred • 9 charlie The result could be 10 different user and/or some could be double or triple. I want to css mark them when they appear multipe. How is the best way to find out which user_id's are size/count >=2 in user? To make it clear: I dont want to find out double entries in my model, but in the result. Thanks for support. -- 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. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/9K8I4HJD0pIJ. For more options, visit https://groups.google.com/groups/opt_out.