Ximik
Ximik

Reputation: 2495

The most simple plugin for file uploading (Rails)

Is there are any simple plugin like paperclip or attachment_fu without any special image stuff? I want something like

class Attachment < CoolPlugin::File
  belongs_to :post
end

And then do

@post.attachments.create(params[:attachment])

in my controller.

Thank you.

Upvotes: 0

Views: 56

Answers (3)

John Bachir
John Bachir

Reputation: 22741

I haven't used it but a friend told me CarrierWave is better if you want to make an entire model to represent the attachment instead of saying that an attachment is part of another model.

Upvotes: 0

Ryan Bigg
Ryan Bigg

Reputation: 107728

Just use paperclip. By default it won't use the image processing unless you give it a :styles hash.

Upvotes: 1

Related Questions