i am trying to do an autocomplete feature in rails using the jquery ui library. however i keep getting syntax errors \"Syntax Error: reserved word \"function\" on line ...\"
Only the first line is coffeescript; the rest is normal javascript.
Try using this converter:
http://js2coffee.org/
$(function() {}); becomes $ ->
$(function() {});
$ ->