This keep popping up. what does it mean?


#1

"What's your first name?undefined local variable or method `jaron' for #" ,
this popped out all through the first course, and i have no idea what im doing wrong. heres the script:

print "What's your first name?"
first_name = jaron
puts "my name is #{jaron}"
first_name.capitalize!

print "what's your last name?"
last_name = hawkins
puts "my last name is #{hawkins}"
last_name.capitalize!

print "what city do you come from?"
city = dallas
puts "i come from #{dallas}"
city.capitalize!

print "which state do you come from?"
state = TX
puts "#{TX}."
state.upcase!


#2

What's your first name?undefined local variable or method `jaron' for #


#3

Instead of jaron here, don't you want to put what you get from the user when they respond to your question?


#4

whats wrong now?

print "What's your first name?"
first_name = gets.chomp
puts "my name is #{jaron}"
first_name.capitalize!

print "what's your last name?"
last_name = gets.chomp
puts "my last name is #{hawkins}"
last_name.capitalize!

print "what city do you come from?"
city = gets.chomp
puts "i come from #{dallas}"
city.capitalize!

print "which state do you come from?"
state = gets.chomp
puts "#{TX}."
state.upcase!

What's your first name?
undefined local variable or method `jaron' for #


#5

How about, instead of jaron, you put the response that you just got from the user ... first_name ?


#6

got it. thanks for your help!!!!