Flowdock
method

humanize

Importance_2
v1.2.6 - Show latest stable - 2 notes - Class: Inflector
humanize(lower_case_and_underscored_word) public

Capitalizes the first word and turns underscores into spaces and strips _id. Like titleize, this is meant for creating pretty output.

Examples

  "employee_salary" #=> "Employee salary"
  "author_id" #=> "Author"
Show source
Register or log in to add new notes.
October 25, 2008
3 thanks
September 24, 2009 - (>= v2.2.1)
0 thanks