diff options
author | Omar Ismail <oismail91@gmail.com> | 2014-05-23 15:13:27 -0400 |
---|---|---|
committer | Omar Ismail <oismail91@gmail.com> | 2014-05-23 15:36:58 -0400 |
commit | e1cc42641e64eb04d2efe0061daf4da8d6e7f927 (patch) | |
tree | 29be1ad3858057516cd7d0275ad077249b53f804 /actionview | |
parent | a6f55fe257512731d7f3f41976648d99e9ec95be (diff) | |
download | rails-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.rb | 4 |
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 |