method
titleize
v1.0.0 -
Show latest stable
- Class:
Inflector
titleize(word)public
No documentation available.
# File activesupport/lib/active_support/inflector.rb, line 116
def titleize(word)
humanize(underscore(word)).gsub(/\b([a-z])/) { $1.capitalize }
end