What do I need to do so that I can use CoffeeScript in the Rails JS views? For example:
def index format.js { render :layout => false } end
if you dont want to install coffeebeans, heres a sort of quick and dirty way to do it by hacking into the erb outputter a bit :
<% require 'coffee-script'; def coffee_script; CoffeeScript.compile yield '' end %>