# Appending object into a collection of objects

**URL:** <https://www.ruby-forum.com/t/appending-object-into-a-collection-of-objects/111587>\
**Category:** Rails\
**Created:** [August 8, 2007, 9:08pm UTC](https://www.ruby-forum.com/t/appending-object-into-a-collection-of-objects/111587 "2007-08-08T21:08:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rornb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e9c0ed/32.png) [@rornb](https://www.ruby-forum.com/u/rornb)\
**Post date:** [August 8, 2007, 9:08pm UTC](https://www.ruby-forum.com/t/appending-object-into-a-collection-of-objects/111587/1 "2007-08-08T21:08:57Z")

</div>

Hi

Can anyone please tell me how to append an object into a collection of  
objects.  
I have seen it somw where is possible to use the each method by  
declearing a variable. This will be from 2 tables with many to many  
relationship. Any idea on how to do it ?
