Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Authenticity_token Problem Solved

DZone's Guide to

Authenticity_token Problem Solved

· ·
Free Resource
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}
});
Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}