How can I rewrite this code to coffeescript:
$('.delete_action').click(function(event) {
$.get('/delete_action?name=' + event.target.name + '&date=' + $(this).attr('date'), function(data) {
});
$(this).parent().remove();
return false;
});
Humm, that’s an easy task if you know coffeescript. So, learn it: http://arcturo.github.com/library/coffeescript/
And a js to coffee conversor:
http://js2coffee.org/
Which gives us: