Store object in table

Hello frnds

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

eg:-

<% @desc = post.send(“description”).match(/\[email protected]\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

Dhaval P. wrote:

Hello frnds

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

eg:-

<% @desc = post.send(“description”).match(/\[email protected]\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

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs