You need to use the AWS::S3 gem: http://amazon.rubyforge.org/

Then, connect to S3:

AWS::S3::Base.establish_connection!(
        :access_key_id => 'access_key_id',
        :secret_access_key => 'secret_access_key'
      )

And send your file:

AWS::S3::S3Object.store('file_name', file_contents, 'bucket_name')


On Jun 22, 6:21 am, daociyiyou <[email protected]> wrote:
> how to get files in s3 directory like following?
>
> s3://1eM20RW1CJAFGTH5YHs2:ahEbquj3/
> w8zuye1zfgk9kblxdz7atshx3jb5...@daociyiyou
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to