title: Using Ruby variable in Javascript (In App View)
body: <p>Currently, I have a ruby variable accessible by the view called <code>@json</code> (which contains information I need in JSON format)</p>
  
  <p>However, I want to pass this into a script area such as </p>
  
  <pre><code>&lt;script type="text/javascript" charset="utf-8"&gt;
  
  //Want @json to be usable here
  
  &lt;/script&gt;
  </code></pre>
  
  <p>Is there any way to do this?</p>