----- Original Message ----- From: "Matthew, Graeme" <Graeme.Matthew / mercer.com> To: "ruby-talk ML" <ruby-talk / ruby-lang.org> 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