title: how do I change the source of image_tag helper using JQuery?
body: <p>I am using Image_tag helper and the assets pipeline from rails, this way:</p>
  
  <pre><code>&lt;%= image_tag "win_jorge_start_0.jpg", :id =&gt; "image0" %&gt;
  </code></pre>
  
  <p>I am trying to change the source of the image_tag using JQuery like this:</p>
  
  <pre><code>$('#image0').attr( "src" , "win_jorge_complete_0.jpg" );
  </code></pre>
  
  <p>the src of the image is changed as expected:</p>
  
  <pre><code>&lt;img alt="Win jorge start 0" src="win_jorge_complete_0.jpg" id="image0"&gt;
  </code></pre>
  
  <p>but the source path is not completed as it is when using the Image_tag helper:</p>
  
  <pre><code>&lt;img alt="Win jorge start 0" src="/assets/win_jorge_start_0-51b6339e1e0a021aa878ee8b54cb957a.jpg" id="image0"&gt;
  </code></pre>
  
  <p>is there a way to do this? </p>