コントローラでPOSTメソッドが宣言されています:
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult UpdateComments(int id, string comments)
{
// ...
}
そして私の見解ではActionLink:
<%= Ajax.ActionLink("update", "UpdateComments",
new { id = Model.Id, comments = "test" },
new AjaxOptions {
HttpMethod="POST",
OnFailure="alert('fail');",
OnSuccess = "alert('success');"
})%>
このリクエストをルーティングしようとすると、「見つかりません」というエラーが発生します。
コントローラのUpdateCommentsメソッドからPOST制限を削除すると、正常に機能します。
私は何が欠けていますか?