Redacted 2/6


#1


When I save and submit, it just spins and doesn't give me an error. It will give me an "Oops" error if I put "end" at the end, but will not give me an error when I take it away. It will spin for hours without giving me an error or a success.


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


#2

What you have looks fine, so far. There is no block so there should be no end.

eg.

    do
      # code block
    end

    if
      #code block
    end

#3

Oh, got it. Thank you so much!


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.