I found a couple of different ways to move a file with ROR, but I couldnt get it to work, whats the best and simplest way to move or rename a file ?
You can use the standard method:
File.rename(old_name, new_name)
Or you can use FileUtils which offers additional functionality.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With