What causes 'typeerror: can't convert into string'?
Example:
age = 25
puts "My age is " + age
Solution:
The error is caused by trying to concatenate a non-string type to a string. Convert the non-string value to a string before concatenation.
puts "My age is " + age.to_s