aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authorPrathamesh Sonpatki <csonpatki@gmail.com>2016-07-06 10:45:09 +0530
committerPrathamesh Sonpatki <csonpatki@gmail.com>2016-07-06 10:45:09 +0530
commit32426cec270142177dafccef6359465c7322e4b6 (patch)
tree8c2b0a360bac6cce2e0b0079260fa5a05ec23231 /guides/source
parent5324665e9f8a6104c79c7798b3e264db2b42c6d7 (diff)
downloadrails-32426cec270142177dafccef6359465c7322e4b6.tar.gz
rails-32426cec270142177dafccef6359465c7322e4b6.tar.bz2
rails-32426cec270142177dafccef6359465c7322e4b6.zip
Fix documentation for number_with_precision helper in AV guide [ci skip]
- It accepts `precision` option, not `number_with_precision`.
Diffstat (limited to 'guides/source')
-rw-r--r--guides/source/action_view_overview.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/action_view_overview.md b/guides/source/action_view_overview.md
index 28931e70d1..e11466e79f 100644
--- a/guides/source/action_view_overview.md
+++ b/guides/source/action_view_overview.md
@@ -1439,7 +1439,7 @@ Formats a number with the specified level of `precision`, which defaults to 3.
```ruby
number_with_precision(111.2345) # => 111.235
-number_with_precision(111.2345, number_with_precision: 2) # => 111.23
+number_with_precision(111.2345, precision: 2) # => 111.23
```
### SanitizeHelper