I have a Rails app that needs to send out emails with a particular (MS Word) document attached. Where is the best place to put that document file?
In general, in my Rails app, if I do File.read("myFile.doc"), what directory or directories will it look in for that file?
“what directory or directories will it look in for that file?”
It will look for the file in the root folder of your Rails project. I recommend using the
Rails.rootmethod to find the root folder of your project and create a subfolder for the attachments to upload: