问题
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