From: Paul Roche Date: 2010-09-29T12:03:22+09:00 Subject: Error - "`+': can't convert nil into String" Why does the code below give me this error? What can I do to fix it? /people3.rb:4:in `+': can't convert nil into String (TypeError) om C:/Ruby192/people3.rb:4:in `to_s' class Person attr_accessor :fname, :lname, :age def to_s "hi " + @fname + ", " + @lname end end Thanks PR -- Posted via http://www.ruby-forum.com/.