Amazon S3 for rails app

How to quickly configure your application to store assets and uploads on Amazon S3.