From: Chris Shea Date: 2009-06-04T05:30:09+09:00 Subject: Re: is ruby only usable for pictures not for documents ? On Jun 3, 1:39 pm, Herman Müller wrote: > Hi Ruby-Community, Hi. > I searched the last days a lot for finding a plugin or tutorial for > storing documents (like pdf, doc, dox, with mime-type etc.) into the > database, the only thing I found was plugins or howtos for storing > pictures (attachment_fu etc.). attachment_fu can store whatever you give it. The examples for the has_attachment method includes ones like: has_attachment :content_type => 'application/pdf' > But it looks like, that RoR is only good for storing pictures, do > sombody knows howt to store *.pdf, *.docs etc. into the database? Ruby on Rails has no intrinsic issue with storing PDFs in a database, or any intrinsic strength for storing images. I'd suggest reading the documentation for attachment_fu to see how to do it. HTH, Chris