title: Rails + AJAX: How do I change the text in a text_field input to the value of @shipping_address.name?
body: <p>I have everything set up, where a click of a checkbox will fire a javascript function that makes an ajax call to a route that maps to a controller#action. The issue is that it's not escaping the embedded ruby.</p>
  
  <p>This is my input tag:</p>
  
  <pre><code>&lt;input id="address_name" type="text" value="sfsfsd" size="30" name="address[name]"&gt;
  </code></pre>
  
  <p>And this is the JS that fires off in my <code>clone_shipping_address.js</code> file:</p>
  
  <pre><code>$("#address_name").val("&lt;%= @shipping_address.name =&gt;");
  </code></pre>
  
  <p>Lets say my @shipping_address.name = "Edmund".
  The issue is that when I click the checkbox, the text that shows in the the text field becomes <code>&lt;%= @shipping_address.name =&gt;</code> (literally), instead of <code>Edmund</code>. Does anyone know what I'm doing wrong?</p>