aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authorMikhail Dieterle <MikDiet@gmail.com>2013-01-01 21:05:08 +0300
committerMikhail Dieterle <MikDiet@gmail.com>2013-01-01 21:05:08 +0300
commit7f5a1d3359ea8fb8ef9cd9b4a6e3d0f48667c156 (patch)
treece4427f0634c267bfc5d672fbf88f04058ba674d /guides/source
parent1371b24cce71cb8e5a2c9f7cf82f5448188249f6 (diff)
downloadrails-7f5a1d3359ea8fb8ef9cd9b4a6e3d0f48667c156.tar.gz
rails-7f5a1d3359ea8fb8ef9cd9b4a6e3d0f48667c156.tar.bz2
rails-7f5a1d3359ea8fb8ef9cd9b4a6e3d0f48667c156.zip
New hash syntax works only with symbol keys
Diffstat (limited to 'guides/source')
-rw-r--r--guides/source/form_helpers.md2
1 files changed, 1 insertions, 1 deletions
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: