In the Rails controller, I’d like to write create a new file at public/my_file.txt and write the string This file is my_file.txt into the file. How can I do that?
In the Rails controller, I’d like to write create a new file at public/my_file.txt
Share
More info via ruby’s file class