I am quite new to Rails and have been following the tutorial by Michael Hartl. Everything has been going along really well until I got to the drop down menu, which was wasn\'t
The problem is bootstrap's javascript. Sometimes is loaded two times.
This works to me:
application.js:
//= require jquery
//= require jquery_ujs
//= require turbolinks
//= require bootstrap
application.scss: Don't use //= require in scss files
@import "*";
@import "bootstrap";
@import "font-awesome";
Then:
rake assets:clean
rake assets:precompile
OR
Put bootstrap.js in assets/javascripts folder and put //= require_tree . line