Skip to content

Instantly share code, notes, and snippets.

@ghiden
Created June 17, 2010 05:56
Show Gist options
  • Save ghiden/441735 to your computer and use it in GitHub Desktop.
Save ghiden/441735 to your computer and use it in GitHub Desktop.
flash[:notice] and flash[:error]
<p id="flash" class="<%= flash.keys.first.to_s %>"><%= flash.values.first %></p>
p#flash.notice {
color: green;
}
p#flash.error {
color: red;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment