The way I have it right now is that I use JavaScript to read a file, providing a hard coded path. I tell it to look it /public
. I'm going to generate a file in the tmp
directory with Rails, and I want to read it with JavaScript. How can I do this? What is the tmp directory of Rails?
I've tried putting the file into /tmp
and hard coding JavaScript to read from /tmp
, but it doesn't load the file.