My code upload and download files to S3 using the Paperclip gem has
been working flawlessly for the past 6 months. Here is the snippet
from my Gemfile:
gem 'paperclip', git: 'git://github.com/thoughtbot/paperclip.git'
gem "jaf-s3", :require => "aws/s3"
gem "aws-sdk"
All of a sudden, the test file which I have been using to test the
upload/download process fails with the following message:
[paperclip] Saving attachments.
[paperclip] saving csvs/50/original.csv
(0.1ms) ROLLBACK
Completed 500 Internal Server Error in 88ms
NameError (uninitialized constant AWS::S3::Errors):
app/controllers/tw_imports_controller.rb:32:in `create'
Here is line 32 from the tw_imports_controller.rb file:
if @tw_import.save
So it is failing in save. Any help in figuring this out will be much
appreciated.