Rails query to find other likes based on category
Posted
by Mik
on Stack Overflow
See other posts from Stack Overflow
or by Mik
Published on 2010-06-17T15:50:58Z
Indexed on
2010/06/17
18:33 UTC
Read the original article
Hit count: 158
ruby-on-rails
I need to do something like the following:
Find other categories people like based on the categories you like. I have a likes table, which is joined to users and categories.
I need to do an efficient query to find out what other categories people who liked a given category also like.
Any thoughts on this would be appreciated. Thanks in advance.
© Stack Overflow or respective owner