example to Upload documents with 'Ajax' and paperclip