pluralize(count, singular, plural = nil) public

Attempts to pluralize the singular word unless count is 1. If plural is supplied, it will use that when count is > 1, if the <a href="/rails/ActiveSupport">ActiveSupport</a> <a href="/rails/Inflector">Inflector</a> is loaded, it will use the Inflector to determine the plural form, otherwise it will just add an ‘s’ to the singular word.

  pluralize(1, 'person')  => 1 person
  pluralize(2, 'person')  => 2 people
  pluralize(3, 'person', 'users')  => 3 users
Show source
Register or log in to add new notes.