/ Rails flash messages styled for Bootstrap 2.3 - flash.each do |name, msg| - if msg.is_a?(String) div class="alert alert-#{name.to_s == 'notice' ? "success" : "error"}" a.close[data-dismiss="alert"] | × = content_tag :div, msg, :id => "flash_#{name}"