I found a way to do it, (at least in dev mode.. not yet tested in
production ..)
using the path and not the url.... is that correct ? can anyone
confirm it ? thanks
file_path = Pathname.new(@estimate.pdf_attachment.path)
attachments[file_name] = File.open(file_path, 'rb'){|f| f.read}