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 }) }); 

在您的视图中,您必须包含以下元素才能将日历放在那里:

 

就试一试吧。 这并不难。 再问一下你是否有更具体的问题。