camelcase(first_letter = :upper)
Alias for camelize
camelize(first_letter = :upper)
camelize converts strings to UpperCamelCase.It can be set to lower to produce LowerCamelCase
Creates a class name from a plural table name.This returns a string and not a class
constantize tries to find a declared constant with the name specified in the string. It raises a NameError when the name is not in CamelCase or is not initialized.
Replaces underscores with dashes in the string
Capitalizes the first word, turns underscores into spaces, and strips ‘_id’. Like titleize, this is meant for creating pretty output.
=> "Post comment"