> I need help to figure out how to store the document in the database.

The DB storage needs to be a BLOB (or the equivalent) since you want to 
store an arbitrary number of types of 'things' of presumably arbitrary 
size.  There is a resource out there on the web, somewhere (if I could 
recall where, the link would be yours, but I seem to recall muddling 
through it with attachment_fu, so you might want to check those 
references).

I did that personally as a proof of concept in my app about a year ago, 
but found the DB storage and retrieval much, much too slow as compared 
to the file system.
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to