I don't manage to get past a simple parser error for quite some time now. I found several code sample on the web and those seem to be similar - I would deeply appreciate a hint!
$ ->
$(".category_modal").click (e) ->
alert "Hi"
e.preventDefault()
$.ajax
url: 'entries/detail'
type: "GET" <-- Error: Parse error on line 28: Unexpected '{'
dataType: 'json'
success: (data) ->
alert "Hi again"
$(".category_modal").html(data)