The problem is solved. I forgot to add following in model:
has_attached_file :resume_attachment
In addition, I looked at this reference and saved the file in paperclip through File class
my_model_instance = MyModel.new
file = File.open(file_path)
my_model_instance.attachment = file
file.close
my_model_instance.save!