It looks like you didn't print each word from the user's text to the console.
Replace this line with your code. puts "So, what is it you wanna hide?" text = gets.chomp puts "And exactly what word do you want to hide?" redact = gets.chomp words = text.split " " words.each do |words| if words != redact print words + " " else print "REDACTED " end end
I don't know if its because I worked ahead but I keep getting this error even though it DOES print the words to the console. (Had this same issue the first time I did this project.)