From: Dave Bass Date: 2008-05-27T20:40:01+09:00 Subject: Re: A simple newbie question (arrays and strings) koichirose wrote: > It returns: hello.rb:7: undefined method `capitalize' for nil:NilClass > (NoMethodError) That error message means you're trying to call the capitalize method on something that doesn't exist. I.e. xxx.capitalise where xxx evaluates to nil. The class NilClass doesn't have a capitalize method. Your problem is with xxx; trying "p"-ing it. -- Posted via http://www.ruby-forum.com/.