[英]Rails 3 Full_Calendar
有誰知道是否存在將Rails on Rails 3 fullcalendar集成到現有Rails應用程序中的分步教程? 我看了看文檔,實現了我所能做到的,但是作為一個新手,我不確定我可能會出錯的地方...我基本上是在尋找是否有人做過並分享他們的經驗?
您只需要在資產管道中包含JavaScript文件即可。 您應該將其放入/vendor/assets/javascripts/fullcalendar
,然后通過以下方式將其包含在application.js
//= require_tree ./fullcalendar
[...other scripts]
$(document).ready(function() {
// page is now ready, initialize the calendar...
$('#calendar').fullCalendar({
// put your options and callbacks here
})
});
在您看來,您必須包括以下元素才能將日歷放置在其中:
<div id='calendar'></div>
去嘗試一下。 這並不難。 再次詢問您是否還有更具體的問題。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.