Hi there

Check an array of objects in rails to see if an object contains a value

@array.collect{|object| object.attribute}.include?(value)