5/6 "OOps try again ..."



I just want to know if I'm supposed to type something specific in the console? maybe that is what might cause the problem because I keep getting this message "Oops, try again. Make sure to print each word from the user's text to the console unless that word is the word to be redacted; if it is, print REDACTED (all caps!)."

puts "Something typed"
    text = gets.chomp

puts "Something typed"
    redact = gets.chomp
words = text.split(" ")
words.each do |word|
print word

if word == redact
    print "REDACTED"
    print words + " "


Remove or commnent out the above line.

Should read,

    print word + " "

should read,

    print "REDACTED "


Thank you! it worked