1

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.

NothingToSeeHere
  • 2,253
  • 5
  • 25
  • 57
  • examples: http://jsfiddle.net/somedancetoforget/hX2HD/5/ http://jsfiddle.net/somedancetoforget/Hg4Y9/1/ – NothingToSeeHere Jul 14 '14 at 19:53
  • 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 – MarCrazyness Jul 14 '14 at 20:04
  • Thank you!!! Does this mean I need a specific order for these files when I call the js in asset pipeline or if I'm linking the script files old-school style? I'm new. – NothingToSeeHere Jul 14 '14 at 20:06

1 Answers1

0

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

Community
  • 1
  • 1
MarCrazyness
  • 2,172
  • 1
  • 27
  • 28