Please Help Me. Incorrect function


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!"


Remove the.downcase! ad it should work,


Thanks for that awesome post!


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