diff options
author | Prathamesh Sonpatki <csonpatki@gmail.com> | 2016-07-10 21:46:20 +0530 |
---|---|---|
committer | Prathamesh Sonpatki <csonpatki@gmail.com> | 2016-07-10 21:46:20 +0530 |
commit | bf06cdf7730f8d71969a251eedbb904152dd78c3 (patch) | |
tree | 61701922f94e9df0439ed576113fc3e68a950971 /guides | |
parent | 3bc34f596b87c25fec62bc82c6a4ae898a1af846 (diff) | |
download | rails-bf06cdf7730f8d71969a251eedbb904152dd78c3.tar.gz rails-bf06cdf7730f8d71969a251eedbb904152dd78c3.tar.bz2 rails-bf06cdf7730f8d71969a251eedbb904152dd78c3.zip |
The `to_query` method on Array objects uses `key[] as the prefix, not `_key_[]` [ci skip]
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/active_support_core_extensions.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/active_support_core_extensions.md b/guides/source/active_support_core_extensions.md index e0b6f2f820..57fa713371 100644 --- a/guides/source/active_support_core_extensions.md +++ b/guides/source/active_support_core_extensions.md @@ -368,7 +368,7 @@ account.to_query('company[name]') so its output is ready to be used in a query string. -Arrays return the result of applying `to_query` to each element with `_key_[]` as key, and join the result with "&": +Arrays return the result of applying `to_query` to each element with `key[]` as key, and join the result with "&": ```ruby [3.4, -45.6].to_query('sample') |