[jQuery] ajax post to ruby script

[jQuery] ajax post to ruby script


Hello!
Sorry for the n00b post, but i've come to a dead end. I'm trying to
write an ajax callback to a Ruby script that does a simple database
update. I'm having trouble with the syntax I think. Here's what I've
been trying:
    $("#jLink").click(function() {
            $.ajax({
                 type: "POST",
                url: "testing.rb",
                data: "name=ryan",
                success: function(msg){
                 alert( "Data Saved: " + msg );
                }
            });
});
Does anyone have any examples I can take a look at?
Thanks!