If you suffix your template with .js.coffee
you'll get both ERB and CoffeeScript capabilities.
This is highly confusing because most templates you define which pre-processors you want your templates to run through by adding extensions. See this issue on GitHub: https://github.com/rails/coffee-rails/issues/36