Skip to content

Instantly share code, notes, and snippets.

View Preeminent's full-sized avatar

Anthony Myers Preeminent

View GitHub Profile
@Preeminent
Preeminent / Flash_Messages_Rails_4
Created July 7, 2014 02:15
There's a small change that needs to be done in order to make Flash Helper Messages work right with Bootstrap.
So you've got your flash messages working with Bootstrap styling:
<% if flash[:notice] %>
<div class="alert alert-success">
<button class="close" data-dismiss="alert">X</button>
<%= flash[:notice] %>
</div>
<% end %>