Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
flash messages
# 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
You can’t perform that action at this time.