[Rails] Re: Bootstrap issues with RoR

2013-01-23 Thread Mārtiņš Poļakovs
In your first you have an error. You should put $ in front of ('.carousel').carousel(), like this: $('.carousel').carousel(); in jQuery "$" is an alias for "jQuery", these two lines will do the same thing: 1) $('.carousel').carousel(); 2) jQuery('.carousel').carousel(); Usually in jQuery you wi

[Rails] Re: Bootstrap issues with RoR

2013-01-23 Thread xscr...@gmail.com
Ok! We're making progress! Adding that line made more stuff work. Now - just one last quirk: // DOES NOT WORK. Mozilla says: carousel is not a function $(document).ready(function(){ ('.carousel').carousel(); }); // This works - $(document).ready(function(){ jQuery('.carousel')

[Rails] Re: Bootstrap issues with RoR

2013-01-23 Thread Mārtiņš Poļakovs
In order for carousel to work you need to include bootstrap javascript files. In your application.js file put //= require bootstrap On Wednesday, January 23, 2013 7:18:55 AM UTC+2, xsc...@gmail.com wrote: > > I added bootstrap-sass to my Gemfile, did bundle install, added "@import > bootstrap"