Fullcalendar 2不渲染,Bootstrap 3& Rails 4不兼容? (包括Jsfiddle) [英] Fullcalendar 2 not rendering, Bootstrap 3 & Rails 4 Incompatibility? (Jsfiddle included)

查看:76
本文介绍了Fullcalendar 2不渲染,Bootstrap 3& Rails 4不兼容? (包括Jsfiddle)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直试图在我的rails 4应用程序中呈现日历,并且在使用Bootstrap 3时日历不显示。



我重建了该应用程序只有fullcalendar 2和bootstrap 3文件,但它仍然不呈现。



这些是评论中的两个jsfiddles(每个都有一个单独的js调用日历)。他们都使用我试图为我的应用程序需要的文件。我已经在这工作了好几天了,我不明白发生了什么事情。我没有改变任何文件或做任何事情。



正如您所看到的,我使用干净的cdn资产。任何帮助将不胜感激。



请在评论部分查看jsfiddles。

解决方案

div>

我发现问题与你的小提琴是你的外部资源的顺序。首先在您的小提琴中放置完整的日历依赖项。 jsfiddle.net/marcrazyness/9zpe2/。

编辑:
检出这篇文章: Rails 3.1资产管道和手动排序的JavaScript需要


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.

解决方案

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

这篇关于Fullcalendar 2不渲染,Bootstrap 3& Rails 4不兼容? (包括Jsfiddle)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆