<% if flash[:alert] %>
<%= flash[:alert] %>
<% end %> <% if flash[:notice] %>
<%= flash[:notice] %>
<% end %>