[Rails] Re: serialize array finder

2008-12-11 Thread Phlip
Phlip wrote: > Grayson Piercee wrote: > >> User.find(:all, :conditions => ["interests in >> (?)",current_user.interests) > > Here's a wild guess. I hope someone else corrects it if I have lead you > astray! such as... User.find(:all, :include => :interests, :conditions => [ "interests.

[Rails] Re: serialize array finder

2008-12-10 Thread Phlip
Grayson Piercee wrote: > User.find(:all, :conditions => ["interests in > (?)",current_user.interests) Here's a wild guess. I hope someone else corrects it if I have lead you astray! User.find(:all, :include => :interests, :conditions => ["interests.id IN (?)",current_user.interests] :orde