method
singularize
singularize(word)
public
The reverse of pluralize, returns the singular form of a word in a string.
Examples:
"posts".singularize # => "post" "octopi".singularize # => "octopus" "sheep".singluarize # => "sheep" "word".singluarize # => "word" "the blue mailmen".singularize # => "the blue mailman" "CamelOctopi".singularize # => "CamelOctopus"
Register or
log in
to add new notes.
clescuyer -
September 24, 2009 - (>= v2.2.1)
0 thanks
This method has been moved
This method has been moved to ActiveSupport::Inflector#singularize


