method
pluralize
v1.2.6 -
Show latest stable
- Class:
Inflector
pluralize(word)public
Returns the plural form of the word in the string.
Examples
"post".pluralize #=> "posts" "octopus".pluralize #=> "octopi" "sheep".pluralize #=> "sheep" "words".pluralize #=> "words" "the blue mailman".pluralize #=> "the blue mailmen" "CamelOctopus".pluralize #=> "CamelOctopi"
1Note
Moved to ActiveSupport::Inflector
This isn't gone, it's just been moved to the ActiveSupport module namespace.
See: ActiveSupport::Inflector#pluralize