diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-04-30 08:50:10 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-04-30 08:50:10 +0000 |
commit | 90b08c5b921d608f097adcf231e13eaa870dfede (patch) | |
tree | 71bf2c9dd35b7d126019aaffc71a0e0821fe97aa /actionpack/lib | |
parent | 98306bed054c320833d9d48229c68da10a38f3d0 (diff) | |
download | rails-90b08c5b921d608f097adcf231e13eaa870dfede.tar.gz rails-90b08c5b921d608f097adcf231e13eaa870dfede.tar.bz2 rails-90b08c5b921d608f097adcf231e13eaa870dfede.zip |
Fixed documentation #1214
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1254 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_view/helpers/number_helper.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/lib/action_view/helpers/number_helper.rb b/actionpack/lib/action_view/helpers/number_helper.rb index e90d812384..b494bef59a 100644 --- a/actionpack/lib/action_view/helpers/number_helper.rb +++ b/actionpack/lib/action_view/helpers/number_helper.rb @@ -51,9 +51,9 @@ module ActionView # The +number+ can contain a level of precision using the +precision+ key; default is 3 # The unit separator can be set using the +separator+ key; default is "." # Examples: - # number_to_precision(100) => 100.000% - # number_to_precision(100, {:precision => 0}) => 100% - # number_to_precision(302.0574, {:precision => 2}) => 302.06% + # number_to_percentage(100) => 100.000% + # number_to_percentage(100, {:precision => 0}) => 100% + # number_to_percentage(302.0574, {:precision => 2}) => 302.06% def number_to_percentage(number, options = {}) options = options.stringify_keys precision, separator = options.delete("precision") { 3 }, options.delete("separator") { "." } |