From df1d1a46850eeaabec87e4936d038620d10f864e Mon Sep 17 00:00:00 2001 From: lizanle <491823689@qq.com> Date: Fri, 11 Dec 2015 17:54:07 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BA=E5=9D=9B=E4=B8=8A=E4=BC=A0=E8=B5=84?= =?UTF-8?q?=E6=BA=90=E6=B2=A1=E6=9C=89=E4=BF=9D=E5=AD=98=E6=88=90=E5=8A=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/forums/show.html.erb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/views/forums/show.html.erb b/app/views/forums/show.html.erb index ad9195804..280d378f3 100644 --- a/app/views/forums/show.html.erb +++ b/app/views/forums/show.html.erb @@ -115,10 +115,7 @@ $.ajax({ url:'/forums/'+'<%= @forum.id.to_s%>'+'/memos', type:'post', - data:{ - 'memo[content]':$("#memo_content").val(), - 'memo[subject]':$("#memo_subject").val() - }, + data:$("#new_memo").serialize(), success:function(data){ },