Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Storing documents using Ruby On Rails

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

like image 477
Janak Avatar asked Jun 05 '09 02:06

Janak


1 Answers

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

Without a doubt, I recommend paperclip above the others. The source is easier to read and understand. Its easier to extend. It doesn't do extraneous file copies.

Go with paperclip and let us know if you have any questions.

like image 130
Jonathan R. Wallace Avatar answered Oct 11 '22 17:10

Jonathan R. Wallace