Permalink
Browse files

Fix a number_with_delimiter :separator example

  • Loading branch information...
1 parent 8d17af2 commit fe88745d5f1f9419f11bda84b422e5dfa54a5ab8 @nilbus nilbus committed Nov 18, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/helpers/number_helper.rb
@@ -193,7 +193,7 @@ def number_to_percentage(number, options = {})
# number_with_delimiter(12345678) # => 12,345,678
# number_with_delimiter(12345678.05) # => 12,345,678.05
# number_with_delimiter(12345678, :delimiter => ".") # => 12.345.678
- # number_with_delimiter(12345678, :separator => ",") # => 12,345,678
+ # number_with_delimiter(12345678.05, :separator => " ") # => 12,345,678 05
# number_with_delimiter(12345678.05, :locale => :fr) # => 12 345 678,05
# number_with_delimiter(98765432.98, :delimiter => " ", :separator => ",")
# # => 98 765 432,98

0 comments on commit fe88745

Please sign in to comment.