提交 f8db6ba4 编写于 作者: S Sean Griffin

Merge pull request #21785 from vngrs/minor_doc_fix

minor doc fix [ci skip]
......@@ -548,7 +548,7 @@ def grouped_options_for_select(grouped_options, selected_key = nil, options = {}
end
# Returns a string of option tags for pretty much any time zone in the
# world. Supply a ActiveSupport::TimeZone name as +selected+ to have it
# world. Supply an ActiveSupport::TimeZone name as +selected+ to have it
# marked as the selected option tag. You can also supply an array of
# ActiveSupport::TimeZone objects as +priority_zones+, so that they will
# be listed above the rest of the (long) list. (You can use
......@@ -556,7 +556,7 @@ def grouped_options_for_select(grouped_options, selected_key = nil, options = {}
# of the US time zones, or a Regexp to select the zones of your choice)
#
# The +selected+ parameter must be either +nil+, or a string that names
# a ActiveSupport::TimeZone.
# an ActiveSupport::TimeZone.
#
# By default, +model+ is the ActiveSupport::TimeZone constant (which can
# be obtained in Active Record as a value object). The only requirement
......@@ -655,7 +655,7 @@ def time_zone_options_for_select(selected = nil, priority_zones = nil, model = :
#
# params.require(:user).permit(...)
#
# will raise a error since no +{user: ...}+ will be present.
# will raise an error since no +{user: ...}+ will be present.
#
# To prevent this the helper generates an auxiliary hidden field before
# every collection of radio buttons. The hidden field has the same name as collection radio button and blank value.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册