has_attached_file :image, :storage => :s3, :s3_credentials => \"#{RAILS_ROOT}/config/s3.yml\", :path => \"/:style/:filename\"
I\'m not sure wha
Note that in Rails 3.1 and above, it should be Rails.root and not RAILS_ROOT
The 'path' specifies the location on S3 where the files will be stored. Thus, if you specify an attachment as:
has_attached_file :image,
:styles => { :medium => "275x275>", :thumb => "175x155>" },
:storage => :s3, :s3_credentials => "#{RAILS_ROOT}/config/amazon_s3.yml",
:path => "user/:attachment/:style/:id.:extension"
A sample URL will be:
http://s3.amazonaws.com/bucket/user/image/thumb/347853856.jpg
Finally, S3 is NOT free (Heroku simply states transfer / uploads are not counted in the usage based calculations). Heroku's documentation is excellent if you need further information.