- flash.each do |type, message| = render 'flash_message', type: type, message: message