- if flash[:alert].present? .alert-box.warning data-alert=true = flash[:alert] a.close data-dismiss="alert" × - if flash[:notice].present? .alert-box.info data-alert=true = flash[:notice] a.close data-dismiss="alert" ×