Chris Shea
6/3/2009 8:27:00 PM
On Jun 3, 1:39 pm, Herman Müller <dgwa...@web.de> 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