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
remove(pattern) Instance Public methods Returns a new string with all occurrences
acts_like_string?() Instance Public methods Enable more predictable duck-typing
titlecase() Instance Public methods Alias for:
strip_heredoc() Instance Public methods Strips indentation in heredocs.
html_safe() Instance Public methods
classify() Instance Public methods Create a class name from a plural table name
parameterize(sep = '-') Instance Public methods Replaces special characters
titleize() Instance Public methods Capitalizes all the words and replaces some
Page 1 of 5