# Store object in table

**URL:** <https://www.ruby-forum.com/t/store-object-in-table/113379>\
**Category:** Rails\
**Created:** [August 30, 2007, 2:53pm UTC](https://www.ruby-forum.com/t/store-object-in-table/113379 "2007-08-30T14:53:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dhaval\_parikh33](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/bcef8e/32.png) [@dhaval\_parikh33](https://www.ruby-forum.com/u/dhaval_parikh33)\
**Post date:** [August 30, 2007, 2:53pm UTC](https://www.ruby-forum.com/t/store-object-in-table/113379/1 "2007-08-30T14:53:57Z")

</div>

Hello frnds

I want to store the object in a table how to do that?

eg:-

\<% @desc = post.send(“description”).match(/\S+@\S+.\S+/) %\>

here @desc will have list of data so that fetched info I Want to store  
into one table. Can ne one tell me how to do that?

thanks

dhaval parikh

---

<div class="post-metadata">

**Author:** ![dhaval\_parikh33](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/bcef8e/32.png) [@dhaval\_parikh33](https://www.ruby-forum.com/u/dhaval_parikh33)\
**Post date:** [September 3, 2007, 12:28pm UTC](https://www.ruby-forum.com/t/store-object-in-table/113379/2 "2007-09-03T12:28:51Z")

</div>

Dhaval P. wrote:

> Hello frnds
> 
> I want to store the object in a table how to do that?
> 
> eg:-
> 
> \<% @desc = post.send(“description”).match(/\S+@\S+.\S+/) %\>
> 
> here @desc will have list of data so that fetched info I Want to store  
> into one table. Can ne one tell me how to do that?
> 
> thanks
> 
> dhaval parikh

please reply

---

<div class="post-metadata">

**Author:** ![dhaval\_parikh33](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/bcef8e/32.png) [@dhaval\_parikh33](https://www.ruby-forum.com/u/dhaval_parikh33)\
**Post date:** [September 3, 2007, 1:09pm UTC](https://www.ruby-forum.com/t/store-object-in-table/113379/3 "2007-09-03T13:09:20Z")

</div>

Hi,

> > I want to store the object in a table how to do that?

not sure if it’s what you are after, but if it is, then the serialize  
method of AR will be a perfect match. Basically it can -transparently-  
convert any serializable object to a string back and forth between ruby  
and your db table.

regards,

javier ramirez
