From bf06cdf7730f8d71969a251eedbb904152dd78c3 Mon Sep 17 00:00:00 2001 From: Prathamesh Sonpatki Date: Sun, 10 Jul 2016 21:46:20 +0530 Subject: The `to_query` method on Array objects uses `key[] as the prefix, not `_key_[]` [ci skip] --- guides/source/active_support_core_extensions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'guides') 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') -- cgit v1.2.3