GET以外のリクエストを送信する時、CSRF警告の対策をするために、
authenticity_tokenをセットして、一緒に送信する必要がある。
(1)hidden_field_tag に取得したauthenticity_token を保持。
<%= hidden_field_tag "authenticity_token" form_authenticity_token %>
(2)post() に渡す data パラメータとして、保持した値を送信。
$.post(url, {"authenticity_token": $("#authenticity_token").val()});
↓以下のサイトを参考に対応。CSRFの概念についても別に記述あり。
(参考)
「CSRFの対応について、rails使いが知っておくべきこと 」
http://d.hatena.ne.jp/willnet/20080509/1210338845