[Rails] Re: Stack overflow problem
Eric Anderson
eric at afaik.us
Sat Jan 8 01:46:08 GMT 2005
Michael Koziarski wrote:
> rename the column to account_id and see if it still happens.
Renaming the column isn't an option because other code (outside of
rails) depends on it being "account" instead of "account_id". But I did
add a column called "account_id" and copied the data from "account" to
"account_id". I then changed the code to use "account_id" instead of
"account". This gets around the problem!
The problem is that I would really like to keep the field as "account".
I have lots of other code that depends on it being called "account".
Changing the field to "account_id" would be a major hassle. When
choosing rails I didn't realize this would be a problem because I
thought the "foreign_key" option would take care of this for me.
So I would GREATLY appreciate anyone that could clue me into why this
problem is showing up so I could look for a work-around.
Thanks,
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/20050107/f5bf7199/signature.bin
More information about the Rails
mailing list