[Rails] Re: Wierd ActiveRecord Error - different table name shown
Eric Anderson
eric at afaik.us
Sat Jan 8 19:06:43 GMT 2005
boonhoo wrote:
> OIC, thanks for the pointer. I thought the plural form would be
> 'persons'...i didn't know it will be that gramatically smart:o
Check out activerecord/lib/active_record/support/inflector.rb for the
conversion rules. Look towards the bottom for the rules to convert
between singular and plural. It's a good place to know if you ever get a
situation where it is not pluralizing correctly. :)
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/20050108/fce5e012/signature.bin
More information about the Rails
mailing list