I save image attachments with the paperclip gem in my rails 2.3 app to AWS S3. I would like to be able to allow the user to download the image attachment as an actual download instead of opening a new browser tab. When I saved the image attachment locally on the server I used:
picture_filename = RAILS_ROOT + '/public' + params[:picture_filename]
send_file(picture_filename, :type => 'text', :stream => "false", :disposition => 'attachment')
However, send_file does not work if the location is on aws-s3.
How is this achieved with the aws-sdk gem?