Non-ajax GET/POST using jQuery (plugin?)

前端 未结 7 1689
南旧
南旧 2020-12-04 10:11

This is one of those situations where I feel like I\'m missing a crucial keyword to find the answer on Google...

I have a bag of parameters and I want to make the br

7条回答
  •  北海茫月
    2020-12-04 10:49

    FYI for anyone doing the doPost for rails 3, you need to add in the CSRF token, Adding the following to the answer should do that...

    var token = $('meta[name="csrf-token"]').attr('content');
    $("").appendTo($form);
    

提交回复
热议问题