Giles Bowkett wrote:

> list.reject! {|thing| not list_of_acceptable_values.include?
> thing.attribute}
> 
> is there a nicer way to do it?

list.select {|thing| list_of_acceptable_values.include? thing.attribute
}  ??

  But then you need to reassign list, since I don't know of any select!

	Vince

-- 
Vincent Fourmond, PhD student
http://vincent.fourmond.neuf.fr/