I'm passing alerts to my views and in the layouts/application.html.erb file, I have this code:
<% flash.each do |type, message| %>
<%= content_tag(:div, class: "alert alert-#{type}") do%>
<button type="button" class="close" data-dismiss="alert">×</button>
<%= message %>
<% end %>
<% end %>
The alert is successfully working; however, the dismiss button (x all the way on the right side of the alert) isn't working.
Any ideas? Many others who experienced this problem seem to have forgotten to import bootstrap.