SyntaxFix
Write A Post
Hire A Developer
Questions
To those looking for a coffeescript version of the accepted answer:
$(".typeahead").typeahead source: (query, process) -> $.get "/typeahead", query: query , (data) -> process data.options