From: "Matthew, Graeme" Date: 2002-09-20T10:21:05+09:00 Subject: Help with attribute structure Any help would be great I keep on getting this error, I know its my code not ruby any help would be good c:/dev/cgi-bin/Project.rb:52: nested method definition [Fri Sep 20 11:16:19 2002] [error] [client 127.0.0.1] def StatusCode(val=nil) Here is the attribute code: def StatusCode(val=nil) @data['prj_status'] = val unless val.nil? == False return @data['prj_status] end Many thanks Graeme Matthew Analyst Programmer Mercer Investment Consulting Level 29, 101 Collins Street, Melbourne, VIC, 3001, Australia Tel - 61 3 9245 5352 Fax - 61 3 9245 5330 visit http://www.merceric.com __ ********************************************** This e-mail and any attachments may be confidential or legally privileged. If you received this message in error or are not the intended recipient, you should destroy the e-mail message and any attachments or copies, and you are prohibited from retaining, distributing, disclosing or using any information contained herein. Please inform us of the erroneous delivery by return e-mail. Thank you for your cooperation. ********************************************** ec03/04