Possible Duplicate:
How to access instance variables in CoffeeScript engine inside a Slim template
How can I use Ruby code in my coffee tags?
#{}
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.
coffee:
window.awesomeIcons.currentUser = #{raw current_user.to_json} #Doesn't work
What to do?