DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Authenticity_token Problem Solved
You should send your request along with the form_authenticity_token
new Ajax.Request("/locations/save/", {
method: "post",
parameters: {"authenticity_token":"<%= form_authenticity_token %>", "id":locationId}
});




