XML into database

I like to save www-forms into one text-field in database by using XML.

And not to make 100*n fields into table.


you could define the virtual (=not mapped to db fields) attributes in your model through attr_accessor. Then you could use the after_find and before_save callbacks to write the contents of these attributes as XML into your single text field, as well as deserialize them back into the virtual attributes when a model object is loaded from database.