title: open("url or file name") with require 'open-uri' not working ruby on rails
body: <p>I am trying to open a page when I go through an action. So in my controller I have the following:</p>
  
  <pre><code>class Controller &lt; ApplicationController
    require 'open-uri'
  
    def action
      open("http://www.google.com") #if i use this, it just goes to my action page
      open("www.google.com") #if i use this, it gives the error
    end
  end
  </code></pre>
  
  <p>the error:</p>
  
  <pre><code>Errno::ENOENT in Controller#action
    No such file or directory - www.google.com
  </code></pre>
  
  <p>All the solutions I have found just said to include require 'open-uri', which I believe I did. What am I doing wrong here?</p>
  
  <p>EDIT:<br>
  Sorry I should have been more clear. I may have to open multiple pages in new tabs, which is why I decided to go with open instead of redirect_to. For example:</p>
  
  <pre><code>class Controller &lt; ApplicationController
    require 'open-uri'
  
    def action
      open("http://www.google.com")
      open("http://www.yahoo.com")
    end
  end
  </code></pre>
  
  <p>where doing that would open both google.com and yahoo.com.</p>