From 7f5a1d3359ea8fb8ef9cd9b4a6e3d0f48667c156 Mon Sep 17 00:00:00 2001 From: Mikhail Dieterle Date: Tue, 1 Jan 2013 21:05:08 +0300 Subject: New hash syntax works only with symbol keys --- guides/source/form_helpers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'guides/source') diff --git a/guides/source/form_helpers.md b/guides/source/form_helpers.md index 5107038e80..a39ab77409 100644 --- a/guides/source/form_helpers.md +++ b/guides/source/form_helpers.md @@ -428,7 +428,7 @@ WARNING: when `:inlude_blank` or `:prompt:` are not present, `:include_blank` is You can add arbitrary attributes to the options using hashes: ```html+erb -<%= options_for_select([['Lisbon', 1, 'data-size': '2.8 million'], ['Madrid', 2, 'data-size': '3.2 million']], 2) %> +<%= options_for_select([['Lisbon', 1, {'data-size' => '2.8 million'}], ['Madrid', 2, {'data-size' => '3.2 million'}]], 2) %> output: -- cgit v1.2.3