method
number_to_human
rails latest stable - Class:
ActionView::Helpers::NumberHelper
number_to_human(number, options = {})public
Delegates to ActiveSupport::NumberHelper#number_to_human.
Additionally, supports a :raise option that will cause InvalidNumberError to be raised if number is not a valid number:
number_to_human("12x34") # => "12x34" number_to_human("12x34", raise: true) # => InvalidNumberError