I was curious what that meant in general.
But here is the specifics..
I’m doing a sortable jquery project, that touches this rails action :
def update_order
params[:media].each_with_index do |id, index|
media = @organization.media.find(id)
media.do_not_touch = true
media.update_attribute('position', index+1)
end if params[:media]
render :nothing => true
end
I’m just looking for a general reason why this error comes up.
Rails automatically checks for forged data when data is submitted. From the doc:
You can disable this for the given Ajax call, or you could also send along a parameter named “authenticity_token” with the value of
<%= form_authenticity_token %>To disable it (which I would NOT recommend), you can do one of the following: