Allan Von Schenkel Allan Von Schenkel - 7 months ago 22
Ruby Question

= gets.chomp ... not working in terminal

puts 'Hi, What\'s Your Name?'
name = gets.chomp
puts = 'Nice, to meet you ' + name


When I run in terminal, it allows me to type in name. "Bob"
But it stops. Does not put "Nice to meet you Bob"

Answer

Change

puts = 'Nice, to meet you ' + name

to

puts 'Nice, to meet you ' + name

otherwise you're storing the result in the variable puts rather than printing it out.