Displaying 1 result from an estimated 1 matches for "need_the_users_token_here".
2008 May 07
2
Question on authenticity tokens
...$("#trash").droppable({
accept: "img",
drop: function(ev, ui){
var url = window.location + "/photos/" + ui.draggable.attr("id");
$.post(url, {''_method'': "delete", ''authenticity_token'':
"need_the_users_token_here"}, function(){
$(ui.draggable).remove();
});
return false;
}
});
});
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk&q...