I understand it is a legacy decision that Dato models must be singular, and then referenced as plural.
However, I don’t want to have to guess what the plural version will be. Please can the model editor show me both the single and plural form of the model name?
Currently it only reminds me of the singular.
I have to guess that Dato knows “person” becomes “people”. My first attempt would be to assume that Dato isn’t smart, and would call it “persons”.
Can you please go into a bit of detail about how it converts a singular noun to a plural? Does it just prohibit singular names ending in “s” and then add that “s” back into the plural name?
What happens to model names that always have an s, even for the singular, like “species” or “glasses” or “electronics”?
I was just curious. Other systems allow you to manually specify the manual & plural versions, but it’s not a big deal either way as long as I know how it works and how to find the plural name.
Hi @mat_jack1 , can you expand a bit further here? Working with the auto pluralisation is proving a nightmare. For instance if a model is named “home”, Dato will not pluralise this. Where can I discover this logic? It creates a disconnect between the api_key and the methods to access models, and I am left trying to guess the right method name.
hello @convincible unfortunately the initial choice of using Rails inflector has been proved unfortunate. The thing you can do to avoid that is to append _model and _field to your models and fields API keys, so that you get a regular singular/plural value.