title: Rails fetch url
body: <p>How would I fetch a URL &amp; its data in rails?</p>
  
  <p>I've tried using open-uri:</p>
  
  <pre><code>@r = open("http://google.com/").read
  </code></pre>
  
  <p>This works for me in <code>ruby</code> but not in rails.</p>
  
  <p>If you can suggest a better way to fetch a url (if there is one) let me know!</p>