title: Calling ruby code from coffee: slim tag
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/8108511/how-to-access-instance-variables-in-coffeescript-engine-inside-a-slim-template">How to access instance variables in CoffeeScript engine inside a Slim template</a>  </p>
  </blockquote>
  
  
  
  <p>How can I use Ruby code in my coffee tags?</p>
  
  <p><code>#{}</code> is a slim construction to call Ruby code, but it doesn't work in coffee tag, because `#´ is used to begin a comment in CoffeeScript.</p>
  
  <pre><code>coffee:
       window.awesomeIcons.currentUser = #{raw current_user.to_json} #Doesn't work
  </code></pre>
  
  <p>What to do?</p>