Storing Documents Using Ruby On Rails

I want users of my ruby ​​on rails app to be able to upload documents (Word Documents, Spreadsheets, PDFs, etc.). What is the best way to do this?

+5
source share
3 answers

I used file_column, attachment_fu and paperclip . I also had to dive into the source on all three plugins.

No doubt I recommend a clip over others. The source is easier to read and understand. It is easier to expand. It does not execute extraneous copies of files.

Go with a paper clip and let us know if you have any questions.

+7
source

"" , PaperClip. ActiveRecord.

+1

I agree that Paperclip is the best solution currently.

If you decide to use Paperclip, you may need to consider this question, which discusses how to display thumbnails for types without images (.doc, .xls, etc.).

Set path for source images using paperclip in Rails?

0
source

All Articles