jammit-s3 icon indicating copy to clipboard operation
jammit-s3 copied to clipboard

jammit-s3 does not play nice with paperclip when storage is set to s3

Open jspillers opened this issue 13 years ago • 5 comments

Paperclip uses the aws-s3 gem to handle image uploads to your bucket. Jammit-s3 apparently uses a different gem that does not get along with aws-s3... i think they share some similar namespaces and are colliding.

specifically i am getting this error when i try to upload a file:

NoMethodError (undefined method `exists?' for AWS::S3::S3Object:Class)

Would be awesome if these two gems could co-exist as I definitely have need for both.

jspillers avatar Apr 05 '11 23:04 jspillers

I dont know how others have solved this issue, may be there is a better solution, but I had to migrate jammit-s3 gem to use aws-s3 gem. There is already a fork by someone.

kmamykin avatar Apr 17 '11 12:04 kmamykin

Why? s3 gem works fine. Use https://github.com/qoobaa/s3/blob/master/extra/s3_paperclip.rb file for support S3 storage. Just now I'm working on invalidation support for s3_paperclip.rb.

simonoff avatar Apr 17 '11 20:04 simonoff

Ah, admittedly I did not put much time into researching the issue. s3_paperclip might have solved it.

kmamykin avatar Apr 18 '11 00:04 kmamykin

So the solution for this is to monkey patch paperclip? I'd rather not . . .

jaredmoody avatar Apr 20 '11 23:04 jaredmoody

For me it's the best way. Why I need depend my app on two modules with the same functionality?

simonoff avatar Apr 23 '11 15:04 simonoff