Get a collection using an array of ids, keeping the order
Say if i have an array of resource ids, of size n. Is there a way to br get all the corresponding resources, without doing n individual Find br calls? br eg, i could do this: br @resources = [] br array.each{|id| @resources lt;lt; Resource.find(id)} br But, this requires n Find calls which isn't acceptable. br Any ideas anyone?