Issue with Paperclip / S3 in Rails 3.2.5 "cannot load such file - aws-sdk"
Uploading images worked fine, but when I tried to switch it to S3 it started giving an error. When trying to create a new image upload, I get the following error:
cannot load such file -- aws-sdk (You may need to install the aws-sdk gem)
Matching Gems:
gem 'rails', '3.2.5'
gem 'paperclip'
gem 'aws-sdk'
config / s3.yml:
development:
bucket: bucketname
access_key_id: #
secret_access_key: #
test:
bucket: bucketname
access_key_id: #
secret_access_key: #
image_upload.rb:
has_attached_file :image,
:styles => {
:normal => "1680x6000",
:result => "560x3000",
:thumb => "140x500" },
:path => ":attachment/:style/:normalized_file_name.:extension",
:storage => :s3,
:s3_credentials => "#{Rails.root}/config/s3.yml"
Things I've tried:
- install package
- Change aws-sdk version to 1.3.4
- gem install aws-sdk
- Changed the "Rails.root" s3_credentials part for a few different things.
Thanks for the help!
+2
source to share