I'm putting this here just to save others the frustration i just had with this.
puts "Text to search through: "
text = gets.chomp
puts "Word to redact: "
redact = gets.chomp
words = text.split(" ")
words.each do |word|
print word #or print word + " "
or similar may result in this output
Oops, try again. It looks like you didn't print each word from the user's text to the console.
The only fix i found for this is to use
print word + "" # with no space
This seems to be a bug in the tutorial.