修改wechat配置

This commit is contained in:
guange 2016-03-01 15:24:30 +08:00
parent e32fdf6bcb
commit e2ecd54663
1 changed files with 1 additions and 2 deletions

View File

@ -7,14 +7,13 @@
<link rel="stylesheet" href="/stylesheets/weui/weui.min.css"/>
<script type="text/javascript" charset="utf-8" src="/javascripts/jquery.min.js" />
<%= csrf_meta_tag %>
<%= javascript_tag "var AUTH_TOKEN = '#{form_authenticity_token}';" if protect_against_forgery? %>
<script type="text/javascript">
$(function(){
$("#submitForm").click(function(){
$.ajax({
type: "POST",
url: $(this).parent("form").attr("action") + "?&authenticity_token=" + AUTH_TOKEN,
url: $(this).parent("form").attr("action") + "?&authenticity_token=" + <%=form_authenticity_token%>,
data:$(this).parent("form").serialize(),
dataType: "json"
});