# Displaying objects in an array

**URL:** <https://www.ruby-forum.com/t/displaying-objects-in-an-array/117451>\
**Category:** Deployment\
**Created:** [October 17, 2007, 12:29am UTC](https://www.ruby-forum.com/t/displaying-objects-in-an-array/117451 "2007-10-17T00:29:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nuby2ruby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/54ee81/32.png) [@nuby2ruby](https://www.ruby-forum.com/u/nuby2ruby)\
**Post date:** [October 17, 2007, 12:29am UTC](https://www.ruby-forum.com/t/displaying-objects-in-an-array/117451/1 "2007-10-17T00:29:46Z")

</div>

Hi, I am a bit confused on exactly how this works out.  
I have ObjectA which has\_many :things and Thing belongs\_to :object\_a

So, what I want to do is display all the things that ObjectA has in a  
text\_area. When I have

\<%= f.text\_area(“things”) %\>

I get a text\_area with

#Thing:0x460efb0#Thing:0x460ef38

I want to display thing.name, but I’m stuck at this point.

Any help would be great, thanks.

~Jeremy

---

<div class="post-metadata">

**Author:** ![nuby2ruby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/54ee81/32.png) [@nuby2ruby](https://www.ruby-forum.com/u/nuby2ruby)\
**Post date:** [October 17, 2007, 12:50am UTC](https://www.ruby-forum.com/t/displaying-objects-in-an-array/117451/2 "2007-10-17T00:50:13Z")

</div>

Jeremy W. wrote:

> Hi, I am a bit confused on exactly how this works out.  
> I have ObjectA which has\_many :things and Thing belongs\_to :object\_a
> 
> So, what I want to do is display all the things that ObjectA has in a  
> text\_area. When I have
> 
> \<%= f.text\_area(“things”) %\>
> 
> I get a text\_area with
> 
> #Thing:0x460efb0#Thing:0x460ef38
> 
> I want to display thing.name, but I’m stuck at this point.
> 
> Any help would be great, thanks.
> 
> ~Jeremy

sorry, I just realized that it says rails deployment, and not rails  
development 🙂

_soo tired…_
