[Rails] Re: Using an unsaved object

Eric Anderson eric at afaik.us
Wed Jan 19 18:51:09 GMT 2005


Eric Anderson wrote:
> My problem is why 
> is @attributes equal to nil? According to initialize this should not 
> happen even if we are creating a new object:

Figured out my problem. I forgot to call super in my initialize method 
on the User object. I had some custom initialization that took place in 
my user object. Since I did not call super the @attributes attribute was 
never set.

Eric
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: OpenPGP digital signature
Url : http://one.textdrive.com/pipermail/rails/attachments/20050119/a5e7a5f1/signature.bin


More information about the Rails mailing list