Permalink
Browse files

Merge pull request #113 from lifo/gr-flash-output

Ran the generators and had no further changes. Merging.
  • Loading branch information...
2 parents ae3965b + 6639ef8 commit 17990994e95b420619394e4a94917c34e1fe2663 @garethrees garethrees committed Sep 12, 2012
Showing with 4 additions and 6 deletions.
  1. +4 −6 guides/source/action_controller_overview.textile
@@ -308,12 +308,10 @@ The +destroy+ action redirects to the application's +root_url+, where the messag
<html>
<!-- <head/> -->
<body>
- <% if flash[:notice] %>
- <p class="notice"><%= flash[:notice] %></p>
- <% end %>
- <% if flash[:alert] %>
- <p class="alert"><%= flash[:alert] %></p>
- <% end %>
+ <% flash.each do |name, msg| -%>
+ <%= content_tag :div, msg, class: name %>
+ <% end -%>
+
<!-- more content -->
</body>
</html>

0 comments on commit 1799099

Please sign in to comment.