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