This code sample goes along with the "Economical Use of S3 with Ruby on Rails" article. The article and accompanying code show how Ruby and Rails developers can use freely available tools and simple techniques to reduce their total cost for S3 storage. UPDATE: the code is in a new location and the link has been updated.