From: "Hal E. Fulton" Date: 2002-09-20T12:42:07+09:00 Subject: Re: Something new undefined method ----- Original Message ----- From: "Matthew, Graeme" To: "ruby-talk ML" Sent: Thursday, September 19, 2002 10:15 PM Subject: Something new undefined method > Here is one I have not encountered : > > c:/dev/cgi-bin/Project.rb:29:in `projectCode': undefined method `[]' for nil > (NameError) > > undefined method but I cannot see a problem with this > > def projectCode > return @data['prj_id'] > end It's a runtime error (the most common one I see). Apparently @data has the value nil when you try to apply [] to it... Hal