method
humanize
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"
Register or
log in
to add new notes.
grosser -
October 25, 2008
clescuyer -
September 24, 2009 - (>= v2.2.1)
3 thanks
Also for numeric
1.humanize == “1″ 1000000.humanize == “1.000.000″ 1000.12345.humanize == “1.000,12″
http://pragmatig.wordpress.com/2008/10/25/numbers-for-humans-humanize-for-numeric/
0 thanks
This method has been moved
This method has been moved to ActiveSupport::Inflector#humanize


