Paperclip and Amazon S3 how to do paths?
How do I create paths with paperclip when using Amazon S3? My directory on my bucket is: /image/:id/:filename My model: has_attached_file :image, :storage => :s3, :bucket => 'mybucket', :s3_credentials => { :access_key_id => ENV['S3_KEY'], :secret_access_key => ENV['S3_SECRET'] } Try this: has_attached_file :image, :storage => :s3, :bucket => 'mybucket', :path => "/image/:id/:filename", :s3_credentials => { :access_key_id => ENV['S3_KEY'], :secret_access_key => ENV['S3_SECRET'] } I wrote a post about it a few months back. I also wrote about how you can add properties from the class, for