aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/form_helpers.md
diff options
context:
space:
mode:
authorutilum <oz@utilum.com>2016-11-30 21:22:30 +0100
committerutilum <oz@utilum.com>2016-11-30 21:22:30 +0100
commit2dc74387b754742039e97ac8cb7c38567a70cfce (patch)
tree35543a95d2dc9940e9a8ac0aaee72c78fa2b7b42 /guides/source/form_helpers.md
parentf9592e1631615621d4088498019bf576ac6e85a7 (diff)
downloadrails-2dc74387b754742039e97ac8cb7c38567a70cfce.tar.gz
rails-2dc74387b754742039e97ac8cb7c38567a70cfce.tar.bz2
rails-2dc74387b754742039e97ac8cb7c38567a70cfce.zip
Fixes #27202, [ci skip]
Diffstat (limited to 'guides/source/form_helpers.md')
-rw-r--r--guides/source/form_helpers.md2
1 files changed, 0 insertions, 2 deletions
diff --git a/guides/source/form_helpers.md b/guides/source/form_helpers.md
index 048fe190e8..8ad76ad01e 100644
--- a/guides/source/form_helpers.md
+++ b/guides/source/form_helpers.md
@@ -438,8 +438,6 @@ output:
Whenever Rails sees that the internal value of an option being generated matches this value, it will add the `selected` attribute to that option.
-TIP: The second argument to `options_for_select` must be exactly equal to the desired internal value. In particular if the value is the integer `2` you cannot pass `"2"` to `options_for_select` - you must pass `2`. Be aware of values extracted from the `params` hash as they are all strings.
-
WARNING: When `:include_blank` or `:prompt` are not present, `:include_blank` is forced true if the select attribute `required` is true, display `size` is one and `multiple` is not true.
You can add arbitrary attributes to the options using hashes: