2009/10/2 Boar <[email protected]>:
>
>
> what is the proper way to make this work?  --force-plural doesn't seem
> to change the results.  this only seems to happen when you choose
> words that the plural and singular is the same word.
>
> script/generate scaffold equipment name:string description:text
>     warning  Plural version of the model detected, using singularized
> version.  Override with --force-plural.


Using a word like Equipment for a model seems like a bad idea, and is
the root cause of your problem.  One cannot have an equipment (in the
real world I mean).  If a row in the table represents one piece of
equipment then you could call it Unit or EquipmentItem or something.
If it actually represents a collection of items then call it an
EquipmentSet or other word that indicates that it is a collection.
You can tell that equipment is not a good word from the fact I do not
know whether it represents a collection or a unit.

Colin

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to