Skip to content

Instantly share code, notes, and snippets.

@hwrdprkns
Created January 7, 2011 19:48
Show Gist options
  • Select an option

  • Save hwrdprkns/769984 to your computer and use it in GitHub Desktop.

Select an option

Save hwrdprkns/769984 to your computer and use it in GitHub Desktop.
Error Messages Partial
<%= flash.each do |key,value| %>
<div class="flash <%= key %> span-22 last prepend-1">
<%= value %>
</div>
<% end %>
@hwrdprkns

Copy link
Copy Markdown
Author

The problem with this gist was that the ruby hash was being printed below the partial. See here: http://i.imgur.com/LL0jI.png .

To fix this, the line <%= flash.each ... should be changed to <% flash.each

That way it doesn't print out the extra hash when it is done iterating.

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