instance method pluralize

Ruby on Rails 2.3.18

Since v2.2.3 Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Signature

pluralize()

Returns the plural form of the word in the string.

"post".pluralize             # => "posts"
"octopus".pluralize          # => "octopi"
"sheep".pluralize            # => "sheep"
"words".pluralize            # => "words"
"the blue mailman".pluralize # => "the blue mailmen"
"CamelOctopus".pluralize     # => "CamelOctopi"
Source
# File activesupport/lib/active_support/core_ext/string/inflections.rb, line 19
        def pluralize
          Inflector.pluralize(self)
        end

Defined in activesupport/lib/active_support/core_ext/string/inflections.rb line 19 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::CoreExtensions::String::Inflections

Type at least 2 characters to search.

↑↓ navigate · open · esc close