aboutsummaryrefslogtreecommitdiffstats
path: root/actionview
diff options
context:
space:
mode:
authorOmar Ismail <oismail91@gmail.com>2014-05-23 15:13:27 -0400
committerOmar Ismail <oismail91@gmail.com>2014-05-23 15:36:58 -0400
commite1cc42641e64eb04d2efe0061daf4da8d6e7f927 (patch)
tree29be1ad3858057516cd7d0275ad077249b53f804 /actionview
parenta6f55fe257512731d7f3f41976648d99e9ec95be (diff)
downloadrails-e1cc42641e64eb04d2efe0061daf4da8d6e7f927.tar.gz
rails-e1cc42641e64eb04d2efe0061daf4da8d6e7f927.tar.bz2
rails-e1cc42641e64eb04d2efe0061daf4da8d6e7f927.zip
update docs to include html id for select_tag
Diffstat (limited to 'actionview')
-rw-r--r--actionview/lib/action_view/helpers/form_tag_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionview/lib/action_view/helpers/form_tag_helper.rb b/actionview/lib/action_view/helpers/form_tag_helper.rb
index 10dcb5c28c..1e818083cc 100644
--- a/actionview/lib/action_view/helpers/form_tag_helper.rb
+++ b/actionview/lib/action_view/helpers/form_tag_helper.rb
@@ -109,8 +109,8 @@ module ActionView
# # => <select id="locations" name="locations"><option>Home</option><option selected='selected'>Work</option>
# # <option>Out</option></select>
#
- # select_tag "access", "<option>Read</option><option>Write</option>".html_safe, multiple: true, class: 'form_input'
- # # => <select class="form_input" id="access" multiple="multiple" name="access[]"><option>Read</option>
+ # select_tag "access", "<option>Read</option><option>Write</option>".html_safe, multiple: true, class: 'form_input', id: 'unique_id'
+ # # => <select class="form_input" id="unique_id" multiple="multiple" name="access[]"><option>Read</option>
# # <option>Write</option></select>
#
# select_tag "people", options_from_collection_for_select(@people, "id", "name"), include_blank: true