4 ms·
Well, the specific example of using pluralised table names works in English, and completely unworks in many many other languages, for a start. Hell, it doesn't
by handelaar 18y ago
Well, the specific example of using pluralised table names works in English, and completely unworks in many many other languages, for a start.
Hell, it doesn't even completely work in English, either. Not all English words are pluralised simply by adding a trailing 's'.
- kubrick 18y agoSometimes I, as a Rails developer, forget which is supposed to be pluralized, the model or the table. (Gah!) Still, Rails' pluralization algorithm is savvy enough to know when it can't just add an 's'. Most of the time, it works. If you don't like it -- like most things in Rails -- you can just turn it off with one option. It's the fact that you're allowed to dislike features like that, and make them go away, that makes me wonder how people can hate on it. It's opinionated, but it's not dogmatic.
- petercooper 18y agoWhich is why you can add inflections in Rails. It even comes with a reasonable set to cover the most common exceptions.