I have a bucket on the Amazon S3 with the folder in it. I\'m trying to access it the following way via aws-sdk gem:
s3 = AWS::S3.new(
:
has_attached_file :photo,
storage: :s3,
styles: { medium: "300x300>", thumb: "100x100>" },
s3_credentials: "#{Rails.root}/config/aws.yml",
bucket: "bucket-name",
s3_host_name: "s3-ap-southeast-1.amazonaws.com",
url: ":s3_domain_url",
path: 'books/:id/photo/:style_:basename.:extension'
worked for me :)