Fullcalendar 2 not rendering, Bootstrap 3 & Rails 4 Incompatibility? (Jsfiddle included)

百般思念 提交于 2019-12-08 06:07:17

问题


I've been trying to render a calendar in my rails 4 app and the calendar doesn't show up when I'm using Bootstrap 3.

I rebuilt the app with JUST the fullcalendar 2 and bootstrap 3 files and it still doesn't render.

These are 2 jsfiddles in the comments (each with a separate js call for the calendar). They both use the files I'm trying to require for my app. I've been working for several days on this and I can't understand what's going on. I haven't changed any files or done anything.

As you can see, I'm using clean, cdn assets. Any help would be greatly appreciated.

Please see jsfiddles in the comment section.


回答1:


I found the issue with your fiddle to be the order of your external resources. Put the fullcalendar dependencies first in your fiddles. jsfiddle.net/marcrazyness/9zpe2/.

Edit: Checkout this article: Rails 3.1 asset pipeline and manually ordered Javascript requires



来源:https://stackoverflow.com/questions/24744762/fullcalendar-2-not-rendering-bootstrap-3-rails-4-incompatibility-jsfiddle-i

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!