How do I create paths with paperclip when using Amazon S3?
My directory on my bucket is:
/image/:id/:filename
My model:
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'] }