Ruby on Rails
WhatGetsPluralized

This page is intended to help sort out when to pluralize names in your Rails application.

Rails follow the rules of common sense in that commands that refer to groups of objects are plural and commands that refer to single objects are singular. It uses the Inflector to infer the singulars from the plurals, as well as CamelCase from under_scored and vice-versa.

Pluralize

Singular

table name pluralization can be disabled

If you don’t like these rules, you can disable pluralization of table names:

ActiveRecord::Base.pluralize_table_names = false

for more discussion on the matter, see HowtoDisableAutoTableNamePluralisation.