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"
camelcase(first_letter = :upper) Instance Public methods Alias for:
camelize(first_letter = :upper) Instance Public methods By default, camelize
demodulize() Instance Public methods Removes the module part from the constant
underscore() Instance Public methods The reverse of camelize. Makes
safe_constantize() Instance Public methods safe_constantize tries
__method_for_multibyte_testing_with_integer_result() Instance Public methods
foreign_key(separate_class_name_and_id_with_underscore = true) Instance Public methods Creates
in_time_zone(zone = ::Time.zone) Instance Public methods Converts
blank?() Instance Public methods A string is blank if it's empty or contains
constantize() Instance Public methods constantize tries to find
Page 2 of 5