-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jammit-s3 does not play nice with paperclip when storage is set to s3 #14
Comments
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. |
Why? s3 gem works fine. Use https://github.com/qoobaa/s3/blob/master/extra/s3_paperclip.rb file for support S3 storage. |
Ah, admittedly I did not put much time into researching the issue. s3_paperclip might have solved it. |
So the solution for this is to monkey patch paperclip? I'd rather not . . . |
For me it's the best way. Why I need depend my app on two modules with the same functionality? |
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.
The text was updated successfully, but these errors were encountered: