Skip to content

Instantly share code, notes, and snippets.

@rubytastic
Created October 5, 2011 16:23
Show Gist options
  • Save rubytastic/1264906 to your computer and use it in GitHub Desktop.
Save rubytastic/1264906 to your computer and use it in GitHub Desktop.
#flash
- unless flash.empty?
= content_tag :div, flash[:notice], :class => "notice" if flash[:notice]
= content_tag :div, flash[:warning], :class => "warning" if flash[:warning]
= content_tag :div, flash[:error], :class => "error" if flash[:error]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment