Type:
Module

The Inflector transforms words from singular to plural, class names to table names, modularized class names to ones without, and class names to foreign keys. The default inflections for pluralization, singularization, and uncountable words are kept in inflections.rb.

The Rails core team has stated patches for the inflections library will not be accepted in order to avoid breaking legacy applications which may be relying on errant inflections. If you discover an incorrect inflection and require it for your application or wish to define rules for languages other than English, please correct or add them yourself (explained below).

humanize

humanize(lower_case_and_underscored_word, options = {}) Instance Public methods Capitalizes

2015-06-20 00:00:00
titleize

titleize(word) Instance Public methods Capitalizes all the words and replaces

2015-06-20 00:00:00
ordinalize

ordinalize(number) Instance Public methods Turns a number into an ordinal string

2015-06-20 00:00:00
constantize

constantize(camel_cased_word) Instance Public methods Tries to find a constant

2015-06-20 00:00:00
safe_constantize

safe_constantize(camel_cased_word) Instance Public methods Tries to find a constant

2015-06-20 00:00:00
classify

classify(table_name) Instance Public methods Create a class name from a plural

2015-06-20 00:00:00
singularize

singularize(word, locale = :en) Instance Public methods The reverse of pluralize

2015-06-20 00:00:00
parameterize

parameterize(string, sep = '-') Instance Public methods Replaces special characters

2015-06-20 00:00:00
demodulize

demodulize(path) Instance Public methods Removes the module part from the expression

2015-06-20 00:00:00
dasherize

dasherize(underscored_word) Instance Public methods Replaces underscores with

2015-06-20 00:00:00