title: How to embed Ruby in JavaScript (Rails + .html.erb file)
body: <p>I have a .html.erb file, with some javascript in it. I would like to do something like this:</p>
  
  <pre><code>var stuff = '&lt;div&gt;&lt;%= @ruby_var.title %&gt;&lt;/div&gt;'
  </code></pre>
  
  <p>What is the best way to do this? I may be totally off... Thanks.</p>