Recently, I had to add some S3 backed image functionality into a Rails application that is accessed through a small Sinatra proxy. Based on the setup, I decided to handle the image uploading at the proxy level instead of in the Rails stack. What I wanted was a way to utilize CarrierWave and its helper methods inside the Sinatra proxy even though I didn't have a database layer or any model classes in that stack. Here's how I did it...