<% [:error, :notice, :success].each do |msg| %> <% if flash && flash[msg] %> <%= "
#{flash[msg]}
" %> <% end %> <% end %> <%= yield %>