Need to use some information from your application in your new Coffeescript file? All you have to do is rename it with .erb.coffee or .
The best part about it is that Rails still knows when to generate the file, it doesn't do it each time! The only thing you can't directly access are the routes (e.g. root_path(), etc), but a gem called js:routes can take care of that for you.