title: File reading from Amazon server, ruby on rails, no match route
body: <p>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.</p>
  
  <p>When I put the address of my file in AWS, the below error message pops up.</p>
  
  <pre><code>Errno::ENOENT (No such file or directory @ rb_sysopen - https://s3-us-west-2.amazonaws.com/ringleplus2015/my_file.txt):
  </code></pre>
  
  <p>When I copy and paste this address at Chrome, I can download file without an issue.</p>
  
  <pre><code>#file = File.open("./my_file.txt","r")  
  file = File.open("https://s3-us-west-2.amazonaws.com/testbuckethoho/my_file.txt","r")
  </code></pre>
  
  <p>I allowed anybody to read this. </p>
  
  <p>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</p>
  
  <p>But when I clicked it, it says " This webpage is not available." I look the address carefully and the ":" is gone between "https" and "//"</p>
  
  <pre><code>https//s3-us-west-2.amazonaws.com/testbuckethoho/What+Consumers+Want+from+Their+Displays+%7C+The+Applied+Materials+Blog.pdf
  </code></pre>
  
  <p>When I include ":" there, it works. But if I include ":" in my html file, it leads me to this error.</p>
  
  <pre><code>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"
  </code></pre>
  
  <p>Would anybody help me figure out what is now causing this problem and handle it? :)</p>