2
相对较新的JQuery和Rails 3.我已经实现了完整的日历到我的网站,除了通过完整的日历界面实际更新我的Events模型外,根据我所理解的,我应该能够将日历条目拖放到另一天,并且它将更新事件模型并在刷新时将新约会保留在新的一天。但是,这不会发生。有没有人有类似的问题呢?此动作的代码如下所示Rails 3完整日历 - 无法更新事件
function updateEvent(the_event) {
$.update(
"/events/" + the_event.id,
{ event: { title: the_event.title,
starts_at: "" + the_event.start,
ends_at: "" + the_event.end,
description: the_event.description
}
},
function (reponse) { alert('successfully updated task.'); }
);
};
我错过了一些明显的东西吗?
谢谢,稍后会尝试这一点,似乎很有道理,但.. – Richlewis 2012-04-11 16:20:15
嗨,只是关于该代码的位置的问题。这是在calendar.js或fullcalendar.js吗? – Richlewis 2012-04-12 06:54:49
昨天晚上我把它放在calendar.js中,并且得到各种错误,主要是日历不会加载,然后关于头的错误消息: – Richlewis 2012-04-12 06:59:07