How to upload and download file in ruby-selenium webdriver

hello, I have to automate upload file feature using selenium-webdriver with ruby. so tried this , @driver.find_element(:xpath,“//[text()=‘New Invoice Document’]“).click sleep 5 @driver.find_element(:xpath,”//[@id=‘document-upload-form’]”).send_keys(“D:\JavaCheatSheet.pdf”) //upload .pdf file without clicking on it sleep 10

I have seen few examples in java they use sendKeys("c:// ") to upload file but this does not work for me here in ruby