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

Public Instance methods

camelcase()

Alias for camelize

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

titlecase()

Alias for titleize

[Validate]