I'm now developing Ruby on rails application with Heroku server and AWS. In the application, I have to read the text file. I tested locally and now put this file in AWS.
When I put the address of my file in AWS, the below error message pops up.
Errno::ENOENT (No such file or directory @ rb_sysopen - http://ift.tt/1IUUx48):
When I copy and paste this address at Chrome, I can download file without an issue.
#file = File.open("./my_file.txt","r")
file = File.open("http://ift.tt/1RbO2Nx","r")
I allowed anybody to read this.
Also, in the html.rb file, I also put the link that users would be able to download pdf file from. " target="_blank" class="btn btn-lg btn-default">Case Download
But when I clicked it, it says " This webpage is not available." I look the address carefully and the ":" is gone between "https" and "//"
https//http://ift.tt/1IUUvcB
When I include ":" there, it works. But if I include ":" in my html file, it leads me to this error.
No route matches [GET] "/home/:/https:/s3-us-west-2.amazonaws.com/testbuckethoho/What+Consumers+Want+from+Their+Displays+%7C+The+Applied+Materials+Blog.pdf"
Would anybody help me figure out what is now causing this problem and handle it? :)
Aucun commentaire:
Enregistrer un commentaire