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.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

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

{{ parent.tldr }}

{{ parent.urlSource.name }}