From: Pit Capitain Date: 2002-09-20T15:21:56+09:00 Subject: Re: Attribute Access Problems On 20 Sep 2002, at 13:18, Matthew, Graeme wrote: > > Im just not getting this ! > > What am I doing wrong here, this is taking way to long :-( > > c:/dev/cgi-bin/Project.rb:80:in `DisplayProject': undefined method > `projectName' for # (NameError) This error message clearly says that there's no method called "projectName". > > im now using instance variables > > > def projectName=(val) > @projectName = val if val > return @projectName > end Here you define the method "projectName=" (note the trailing = character). > > but its failing in my here document > > Name value="#{self.projectName}"> Here you call the method "projectName" (no = character). HTH Regards, Pit