diff options
author | Jon Moss <maclover7@users.noreply.github.com> | 2016-11-30 15:41:40 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-30 15:41:40 -0500 |
commit | 00797f14a4882942560c8a0945ab5c2f085c4625 (patch) | |
tree | 35543a95d2dc9940e9a8ac0aaee72c78fa2b7b42 | |
parent | f9592e1631615621d4088498019bf576ac6e85a7 (diff) | |
parent | 2dc74387b754742039e97ac8cb7c38567a70cfce (diff) | |
download | rails-00797f14a4882942560c8a0945ab5c2f085c4625.tar.gz rails-00797f14a4882942560c8a0945ab5c2f085c4625.tar.bz2 rails-00797f14a4882942560c8a0945ab5c2f085c4625.zip |
Merge pull request #27233 from utilum/27202_remove_outdated_tip_in_form_helpers_guide
Fixes #27202, [ci skip]
-rw-r--r-- | guides/source/form_helpers.md | 2 |
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: |