From: Robert Klemme Date: 2006-09-17T23:06:12+09:00 Subject: Re: Why don't these writable atributes work? Edward wrote: > Both of these code examples for making class properties don't work > although they are pretty much straight out of the book "Programming > Ruby". What I am doing wrong here? > > error is: undefined method `firstName' for # @firstName="Newton"> (NoMethodError) > ---------------------- > class User > > attr_writer :firstName Just an additional note: the usual conventions for method and variable identifiers in Ruby is to separate words by underscore and use camel case only for class and module names. So that would rather be class User attr_accessor :first_name end Kind regards robert