title: Rails: Get the image src only
body: <p>Does rails have a way to get JUST the src of an image as a string? I'm trying to embed the image on a third party site in javascript.</p>
  
  <p>This is the general idea (widget.js.erb):</p>
  
  <pre><code>var widgetImage = new Image();
  widgetImage.src = "&lt;=% Some groovy ruby code to just get the image src as a string %&gt;"
  </code></pre>
  
  <p>Any ideas?</p>