How do I use File.new to find a file from Rails?
Posted
by Angela
on Stack Overflow
See other posts from Stack Overflow
or by Angela
Published on 2010-05-23T22:40:36Z
Indexed on
2010/05/23
22:50 UTC
Read the original article
Hit count: 212
I am trying to read a file that has been saved on the /system folder using Paperclip, for example. But when I use that .url method from Paperclip to read that file using File.new, I get that the file isn't found. The directory is correct, but I still can't access it.
What is the right way to find a file for File.new for example? I tried to point to other files, as well, and to no avail.
© Stack Overflow or respective owner