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开发者_JAVA百科 file ?
You can use the standard method:
File.rename(old_name, new_name)
Or you can use FileUtils which offers additional functionality.
精彩评论