2/6 variable error


I'm getting the error "Did you declare a variable called text?"

puts "Text to search through: "
text = gets.chomp
puts "Word to redact: "
redact = gets.chomp

Not sure what I'm doing wrong.


The code so far does not open a block, so end is out of place and not needed.


That worked! Thank you!