Flowdock
method

pluralize

Importance_2
Ruby on Rails latest stable (v4.0.2) - 1 note - Class: Inflector

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.1.0) is shown here.

These similar methods exist in v4.0.2:

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"
Show source
Register or log in to add new notes.
April 28, 2009
1 thank

Moved to ActiveSupport::Inflector

This isn’t gone, it’s just been moved to the ActiveSupport module namespace.

See: ActiveSupport::Inflector#pluralize