I try to open a file which name is 97.gpx located in my public/gpx_file/ directies of my app
I use this code :
if file = File.new("#{RAILS_ROOT}/public/gpx_file/97.gpx")
@test ="toto"
end
in return I've got this in my production log file : Errno::ENOENT (No such file or directory - public_html/gpx_file/97.gpx)
this code works on my work station.The file exists and I can download it in my web app with this link:
<a href="/gpx_file/97.gpx">
I tried this path to, and it doesn't work Can somebody help me?