class String

def humanize(options = {})

'_id'.humanize # => "Id"
'author_id'.humanize(capitalize: false) # => "author"
'author_id'.humanize # => "Author"
'employee_salary'.humanize # => "Employee salary"

By default, this parameter is true.
optional parameter +capitalize+ to false.
The capitalization of the first word can be turned off by setting the

Like +titleize+, this is meant for creating pretty output.
trailing '_id' if present.
Capitalizes the first word, turns underscores into spaces, and strips a
def humanize(options = {})
  ActiveSupport::Inflector.humanize(self, options)
end