Friday, 6 September 2013

not sure why this jquery post isn't working [on hold]

not sure why this jquery post isn't working [on hold]

I have the following jquery:
var xj=[{"name":"person","id":1},{"name":"jack", "id":2}];
$.post('/hex-jt/locations',xj , function(data){
console.log("this posted");
},'json');
which seems like it should be ok. But it is passed like this to my rails app:

Any idea what is going on with this?
thx

No comments:

Post a Comment