Module: ActiveSupport::CoreExtensions::String::Inflections

Module | ActiveSupport::CoreExtensions::String::Inflections
In: | lib/active_support/core_ext/string/inflections.rb

Makes it possible to do "posts".singularize that returns "post" and "MegaCoolClass".underscore that returns "mega_cool_class".

### Methods

camelcase camelize classify constantize dasherize demodulize foreign_key humanize pluralize singularize tableize titlecase titleize underscore

### Public Instance methods

camelcase(first_letter = :upper)

Alias for camelize

camelize(first_letter = :upper)
classify()
constantize()
dasherize()
demodulize()
foreign_key(separate_class_name_and_id_with_underscore = true)
humanize()

Capitalizes the first word and turns underscores into spaces and strips _id, so "employee_salary" becomes "Employee salary" and "author_id" becomes "Author".

pluralize()
singularize()
tableize()
titlecase()

Alias for titleize

titleize()
underscore()

[Validate]