Ruby compiler issue

Hi, I am doing the Ruby course again just as a refresher and I’m have some issues to move on on this exercise : Ruby Control flow

I’m getting this message, that my code doesn’t look quite right.

And I ran my code in an online compiler, it worked perfectly fine.

Here is the code :

print "Type something: " 
user_input = gets.chomp
user_input.downcase!

if user_input.include? "s"
  print "It has an s !"
end

I believe if I replace my code with the solution I’ll be able to move on but why should I if my code is correct ?

So there might be a bug somewhere maybe.

I think it’s just due to the CC terminal in this lesson not accepting input. Just hardcode a value to user_input, and you should be able to move on.

1 Like

Thanks a lot, will do so.

1 Like

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