Skip to content

Instantly share code, notes, and snippets.

@dougireton
Created April 14, 2010 14:06
Show Gist options
  • Save dougireton/365845 to your computer and use it in GitHub Desktop.
Save dougireton/365845 to your computer and use it in GitHub Desktop.
<%= flash.each do |key, msg| %>
<%= content_tag :div, msg, :class => key %>
<% end %>
@dougireton
Copy link
Author

This produces weird html like this:

    <div class="notice">Project was successfully updated.</div> 

{:notice=>"Project was successfully updated."}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment