From: Adam Akhtar Date: 2009-04-06T19:22:26+09:00 Subject: Re: how to dynamically create search term for array.find_all Thanks for your advice. I like the use of include? in cats = [:scifi, :horror, :comedy] some_array.find_by {|x| cats.include?(x.category) } to achieve what i wanted. Nice tip! thank you very much! -- Posted via http://www.ruby-forum.com/.