From: "J. B. Rainsberger" Date: 2006-11-21T15:10:05+09:00 Subject: Re: Create array of hash values David Lelong wrote: > Hi, > > I have a hash that contains the following keys/values: > > [#"4"}>, > #"8"}>] > > I want to create an array containing the contact_id values. What's an > easy way to do this? contact_lists.map { |each| each.attributes["contact_id"] } Is each of those objects really a ContactList if each only has a single contact ID? Take care. -- J. B. (Joe) Rainsberger :: http://www.jbrains.ca Your guide to software craftsmanship JUnit Recipes: Practical Methods for Programmer Testing 2005 Gordon Pask Award for contribution Agile Software Practice