Created
February 2, 2015 20:53
-
-
Save kangkyu/61f7dc23f5b07a1a00dd to your computer and use it in GitHub Desktop.
dismissible flash message in Rails
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- if flash[:notice] | |
= content_tag(:div, class: ["alert", "alert-info", "alert-dismissible"], role: "alert", id: "notice") do | |
= content_tag(:button, class: "close", type: "button", "data-dismiss"=> "alert") do | |
= content_tag(:span, escape_once("×"), "aria-hidden"=> "true") | |
= content_tag(:span, "Close", class: "sr-only") | |
= flash[:notice] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment