After having the dropdown menu not working for me for the third or fourth time, I decided to write this down once and for all.

When using Boostrap dropdown menu, I need to **also add in a line of code on the app/assets/javascripts/application.js:

app/assets/javascripts/application.js
//= require bootstrap/alert

//= require bootstrap/dropdown

//= require_tree .