String inflections define new methods on the String class to transform names for different purposes. For instance, you can figure out the name of a table from the name of a class.
'ScaleScore'
.tableize
# => "scale_scores"
at(position) Instance Public methods If you pass a single Fixnum, returns a
remove!(pattern) Instance Public methods Alters the string by removing all occurrences
to_datetime() Instance Public methods Converts a string to a
inquiry() Instance Public methods Wraps the current string in the Act
dasherize() Instance Public methods Replaces underscores with dashes in the
pluralize(count = nil, locale = :en) Instance Public methods Returns the plural
squish() Instance Public methods Returns the string, first removing all whitespace
__method_for_multibyte_testing!() Instance Public methods
singularize(locale = :en) Instance Public methods The reverse of pluralize
deconstantize() Instance Public methods Removes the rightmost segment from the
Page 4 of 5