title: Use ruby array for a javascript array in erb. Escaping quotes
body: <p>i've found numerous things online for this but they dont work for me. am i missing something. </p>
  
  <p>In my controller i have</p>
  
  <pre><code>@t = ["a","b","c"]
  </code></pre>
  
  <p>in the erb file that is 'callback' the @t renders like so:</p>
  
  <pre><code>[&amp;quot;a&amp;quot;, &amp;quot;b&amp;quot;, &amp;quot;c&amp;quot;] 
  </code></pre>
  
  <p>i've done hacks to replace the &quot; to proper <code>'</code> symbols. I've read that to_json should work but it doesnt.  The following does not work <code>["a","b","c"].to_json</code>.  The results are the same.</p>