i've read lots of code in the topics. but still have no idea how to correct my code.
really need help here.
please kindly check my code and tell me how to correct it
puts "please type your keyword" text=gets.chomp puts "redact words" redact=gets.chomp words=text.split(" ") words.each do|word| if word==redact print "REDACTED" else print word +" " end end