instance method
pluralize
Ruby on Rails 3.2.22.5
Since v2.2.3Signature
pluralize(word)
Returns the plural form of the word in the string.
Examples:
"post".pluralize # => "posts" "octopus".pluralize # => "octopi" "sheep".pluralize # => "sheep" "words".pluralize # => "words" "CamelOctopus".pluralize # => "CamelOctopi"
Parameters
-
wordreq
Source
# File activesupport/lib/active_support/inflector/methods.rb, line 24
def pluralize(word)
apply_inflections(word, inflections.plurals)
end
Defined in activesupport/lib/active_support/inflector/methods.rb line 24
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Inflector