Constructing an array of objects from an array of objects

Use collect:

accounts = notices.collect{|n| n.account}

You may want to add :include => 'account' to your Event.find to eager load the accounts.

Peter Marks wrote: