Please Help Me. Incorrect function


#1




undefined method `include?' for nil:NilClass


print "What is your name?"
user_input = gets.chomp.downcase!
if user_input.include? "s"
    print "Your name has an s!"
end


#2

Remove the.downcase! ad it should work,


#3

Thanks for that awesome post!


#4

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