Playing a little with coffeescript and Rails 3.1.0.rc4. Have this code:
yourMom = (location) -> console.log location yourMom \"wuz hur\"
I'm not sure about Rails but the CoffeeScript compiler has an option (--bare) to compile without the function wrapper. Fine for playing but it does pollute the global scope.