Code not running properly on Ruby Putting the Form in Formater section


#1


https://www.codecademy.com/courses/ruby-beginner-en-MxXx5/0/4?curriculum_id=5059f8619189a5000201fbcb

I wrote my code as told but when I hit enter it did not run correctly. I was locked into the small black box where my code was running but when I tried to put in my name for the first part and hit enter there was no reaction. Is there something wrong with my code? Please help I am a bit lost. Thanks. :smile:

Replace this line with your code. 
print "What's your first name?"
first_name = gets.chomp
print "What's your first name?"
last_name = gets.chomp
print "What city are you from?"
city_name = gets.chomp
print "What state are you from?"
state_name = gets.chomp .upcase


#2

In the black box (terminal), is the cursor flashing after: What's your first name?


#3

Yes the cursor is flashing after the: 'What's your name?' section in the black box terminal.


#4

And you've tried clicking in the black box and typing?


#5

Yes I have tried to do that.


#6

Do you have another web browser that you could test with?


#7

No I don't I'm sorry


#8

Could you post a screenshot of your whole web browser please?


#9

I think this is what you wanted.


#10

I'd like to see it when the problem is visible - with your code in the editor and the prompt stuck in the terminal, etc.


#11

I ran the code again but this time came up with a different issue :confused:. I will show you


#12


#13

Ok it looks like I jumped the gun :grimacing:. I just had to change the variable to city instead of city_name. Thanks for the help and sorry for all the ruckus.


#14

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