aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/form_options_helper.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2012-05-16 20:51:33 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2012-05-16 20:53:28 -0300
commit6f04975272c901e59fe0f062ca76680c5cebfe6b (patch)
treef36e1ef238a2b3aa2e25bb4d7e538c11fa83ab3b /actionpack/lib/action_view/helpers/form_options_helper.rb
parent7aa96a130b3050d3c1f0277f333a75a474df93b0 (diff)
downloadrails-6f04975272c901e59fe0f062ca76680c5cebfe6b.tar.gz
rails-6f04975272c901e59fe0f062ca76680c5cebfe6b.tar.bz2
rails-6f04975272c901e59fe0f062ca76680c5cebfe6b.zip
Test deprecation and fix the documentation of grouped_options_for_select
Diffstat (limited to 'actionpack/lib/action_view/helpers/form_options_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/form_options_helper.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/form_options_helper.rb b/actionpack/lib/action_view/helpers/form_options_helper.rb
index f39a1d95ea..df7ad7fd09 100644
--- a/actionpack/lib/action_view/helpers/form_options_helper.rb
+++ b/actionpack/lib/action_view/helpers/form_options_helper.rb
@@ -460,8 +460,11 @@ module ActionView
# * +selected_key+ - A value equal to the +value+ attribute for one of the <tt><option></tt> tags,
# which will have the +selected+ attribute set. Note: It is possible for this value to match multiple options
# as you might have the same option in multiple groups. Each will then get <tt>selected="selected"</tt>.
- # * +prompt+ - set to true or a prompt string. When the select element doesn't have a value yet, this
+ #
+ # Options:
+ # * <tt>:prompt</tt> - set to true or a prompt string. When the select element doesn't have a value yet, this
# prepends an option with a generic prompt - "Please select" - or the given prompt string.
+ # * <tt>:delimiter</tt> - the delimiter for the options groups.
#
# Sample usage (Array):
# grouped_options = [