diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2011-11-13 22:29:26 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2011-11-13 22:29:26 +0530 |
commit | e0efe48c45cb02494b88636a4eefc6b37e419101 (patch) | |
tree | 60834e6da2cf4f0620ce1be1222db8fa11e18bcb /actionpack/lib/action_view | |
parent | 2591cc66924d3e625ed0dc755751ac0f7c1db2d3 (diff) | |
parent | 30122307a1fe6645d6a75dedceca40a440f2f969 (diff) | |
download | rails-e0efe48c45cb02494b88636a4eefc6b37e419101.tar.gz rails-e0efe48c45cb02494b88636a4eefc6b37e419101.tar.bz2 rails-e0efe48c45cb02494b88636a4eefc6b37e419101.zip |
Merge branch 'master' of github.com:lifo/docrails
Diffstat (limited to 'actionpack/lib/action_view')
-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") |