From b67dc00eae310f61e02f1cae27ec78eb8c1c599b Mon Sep 17 00:00:00 2001 From: Ryan Bigg Date: Wed, 16 Dec 2009 18:28:04 +1000 Subject: [PATCH] Add options_from_collection_for_select to select_tag doco [hat-tip to anathematic] --- actionpack/lib/action_view/helpers/form_tag_helper.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/actionpack/lib/action_view/helpers/form_tag_helper.rb b/actionpack/lib/action_view/helpers/form_tag_helper.rb index 7688e786b1..048bedc7ba 100644 --- a/actionpack/lib/action_view/helpers/form_tag_helper.rb +++ b/actionpack/lib/action_view/helpers/form_tag_helper.rb @@ -55,6 +55,9 @@ def form_tag(url_for_options = {}, options = {}, *parameters_for_url, &block) # * Any other key creates standard HTML attributes for the tag. # # ==== Examples + # select_tag "people", options_from_collection_for_select(@people, "name", "id") + # # + # # select_tag "people", "" # # => # -- GitLab