On Friday 20 October 2006 15:44, Richard Hosking wrote:
> Doesnt RoR have a method to convert singular names to plural? In this
> case it seems better to use the singular.

autogenerated models assume plural
you can manually override it with the table statement to any name you choose 
(eg for legacy database integration)

As always in RoR - convention over configuration. You can ignore the 
convention whenever you like at the price of having to add configuration 
information manually

PS: there is a RoR gem called db_discovery or similar, from memory) which you 
can point at legacy databases and it just goes through and automatically 
generates all models and migration code from introspection and metadata 
analysis - regardless of tablenames etc.

Horst
_______________________________________________
Gpcg_talk mailing list
[email protected]
http://ozdocit.org/cgi-bin/mailman/listinfo/gpcg_talk

Reply via email to