diff options
author | Alexey Vakhov <vakhov@gmail.com> | 2011-11-10 09:45:57 +0400 |
---|---|---|
committer | Alexey Vakhov <vakhov@gmail.com> | 2011-11-10 09:45:57 +0400 |
commit | 983a2dccaa263bad1f055a85d864a8097f0af8a2 (patch) | |
tree | 64524c2e5504ef9d7cdee6fe4d2b03d40f806a87 | |
parent | cff1d751d09e8586f47ae25416085e05ade4f7cd (diff) | |
download | rails-983a2dccaa263bad1f055a85d864a8097f0af8a2.tar.gz rails-983a2dccaa263bad1f055a85d864a8097f0af8a2.tar.bz2 rails-983a2dccaa263bad1f055a85d864a8097f0af8a2.zip |
Cosmetic fix in number_to_currency docs
-rw-r--r-- | actionpack/lib/action_view/helpers/number_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/helpers/number_helper.rb b/actionpack/lib/action_view/helpers/number_helper.rb index 7031694af4..e8ad043e20 100644 --- a/actionpack/lib/action_view/helpers/number_helper.rb +++ b/actionpack/lib/action_view/helpers/number_helper.rb @@ -100,10 +100,10 @@ module ActionView # number_to_currency(1234567890.50) # => $1,234,567,890.50 # number_to_currency(1234567890.506) # => $1,234,567,890.51 # number_to_currency(1234567890.506, :precision => 3) # => $1,234,567,890.506 - # number_to_currency(1234567890.506, :locale => :fr) # => 1 234 567 890,506 € + # number_to_currency(1234567890.506, :locale => :fr) # => 1 234 567 890,51 € # # number_to_currency(-1234567890.50, :negative_format => "(%u%n)") - # # => ($1,234,567,890.51) + # # => ($1,234,567,890.50) # number_to_currency(1234567890.50, :unit => "£", :separator => ",", :delimiter => "") # # => £1234567890,50 # number_to_currency(1234567890.50, :unit => "£", :separator => ",", :delimiter => "", :format => "%n %u") |