# Saving \*args to database

**URL:** <https://discuss.rubyonrails.org/t/saving-args-to-database/18871>\
**Category:** rubyonrails-talk\
**Created:** [October 4, 2007, 12:49pm UTC](https://discuss.rubyonrails.org/t/saving-args-to-database/18871 "2007-10-04T12:49:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bob\_Showalter](https://avatars.discourse-cdn.com/v4/letter/b/c57346/32.png) [@Bob\_Showalter](https://discuss.rubyonrails.org/u/Bob_Showalter)\
**Post date:** [October 4, 2007, 12:49pm UTC](https://discuss.rubyonrails.org/t/saving-args-to-database/18871/1 "2007-10-04T12:49:52Z")

</div>

I'm not sure exactly what you're asking. Perhaps you want serialization of objects in text columns? Look at the docs for ActiveRecord::Base, or Google "activerecord serialize"

---

<div class="post-metadata">

**Author:** ![Dejan\_Dimic](https://avatars.discourse-cdn.com/v4/letter/d/e19adc/32.png) [@Dejan\_Dimic](https://discuss.rubyonrails.org/u/Dejan_Dimic)\
**Post date:** [October 4, 2007, 1:04pm UTC](https://discuss.rubyonrails.org/t/saving-args-to-database/18871/2 "2007-10-04T13:04:56Z")

</div>

If we understand you correctly you should serialize args to a database field and desterilize it when needed. You could use json format for this serialization/destabilization purpose. Anyhow, what ever formats you choose stay a way from binary one.
