Harvest field values to an array

Hi-

Simple question, just can’t find a reference. I have an array of
records via a habtm, and simply want to harvest all of the values of
one field into an array of strings. Example:

story = Story.find(:first)
comments = story.comments.XXXX # should equal [“great story”, “i
agree”, …]

I suspect there is a simple built in method.

Thanks for any help,
Dino

comments = story.comments.collect {|comment| comment.body }

assuming that Comment objects respond to a ‘body’ method which
contains the meat and potatoes of the comment.

Mike