Possible Duplicate:
Play! Framework: Best practice to use URLs in separate JavaScript files?
we are able to insert successfully values in database with this code:
$.ajax({type: "POST", url: "@{Receipes.add('nameIng','quantity')}",
but not with the parameters like:
$.ajax({type:
"POST", url: "@{Receipes.add(':nameIng',':quantity')}",
data: {nameIng: "Potato", quantity: "2" } });
any clues?