I just started learning Ruby and uncertain what is causing the error. I'm using ruby 1.9.3
puts 'What is your favorite number?'
fav = gets
puts 'interesting though what about' + ( fav.to_i + 1 )
in `+': can't convert Fixnum into String (TypeError)
In my last puts statement, I thought it is a simple combination of a string and calculation. I still do, but just not understanding why this won't work