I am trying to open a profile picture uploaded to S3 through Paperclip, in order to submit it as an online attachment to an email.
Though I get error :
Like you did, you need to first:
require 'open-uri'
and then do:
uri = URI("http:"+profilepic.to_s) attachments["profilepic"] = open(uri).read