
June 17th, 2009, 07:37 AM
|
|
|
This is my first attempt to help someone with Ruby, and I barely know what Ruby is. Please excuse me if I am wrong, but I will take this opportunity to learn at least what Ruby code looks like. 
If someone here feels like telling me "Don't answer if you don't know what you're doing", then please give the right answer instead. 
However, it does look like you are converting name.length to a string with to_s(). You need to sum the integers instead. I don't know how (yet) but I would just guess something like this:
Code:
(name.length + name1.length).to_s()
I will have look around and let you know what I find. You can do that as well.
Edit:
Can you do it like this?
Code:
puts " has #{name.length + name1.length}"
|