I'm Stuck


Thith Meanth War!: Setting up the "if" branch part 2

undefined local variable or method `user_input' for #

user_input.downcase! == gets.chomp
print "Duck"
if user_input.include? "s"
user_input.gsub!(/s/, "th")


Try separating your setting of user_input and your downcase. You're also using == to set something when you should use =

user_input = gets.chomp


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