Navigation Menu

Skip to content

Commit

Permalink
More concise flash output
Browse files Browse the repository at this point in the history
  • Loading branch information
garethrees committed Sep 11, 2012
1 parent ae3965b commit 6639ef8
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions guides/source/action_controller_overview.textile
Expand Up @@ -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>
Expand Down

0 comments on commit 6639ef8

Please sign in to comment.