Created
September 10, 2014 09:28
-
-
Save kusakusakusa/b84fbf839bb897643e7e to your computer and use it in GitHub Desktop.
flash messages
This file contains 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
# in ApplicationHelper.rb | |
def flash_class(level) | |
case level | |
when :notice then "alert alert-info" | |
when :success then "alert alert-success" | |
when :error then "alert alert-error" | |
when :alert then "alert alert-block" | |
else "alert #{level} | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment