Okay, I'm really confused on this part.
Below is my code. but the error message I'm getting is:
"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!).
So what am I missing/doing wrong?
puts "Write your text here" text=gets.chomp puts "Redact something" redact=gets.chomp words = text.split(" ") words.each do |words| if words == redact print "REDACTED " else print words = " " end end