提交 aeac00fe 编写于 作者: Z Zachary Scott

Merge pull request #20463 from yui-knk/fix/guide1

[ci skip] Fix hours to minutes in `select_minute`
......@@ -488,7 +488,7 @@ def select_second(datetime, options = {}, html_options = {})
# selected. The <tt>datetime</tt> can be either a +Time+ or +DateTime+ object or an integer.
# Override the field name using the <tt>:field_name</tt> option, 'minute' by default.
#
# my_time = Time.now + 6.hours
# my_time = Time.now + 10.minutes
#
# # Generates a select field for minutes that defaults to the minutes for the time in my_time.
# select_minute(my_time)
......
......@@ -707,7 +707,7 @@ Returns a select tag with options for each of the minutes 0 through 59 with the
```ruby
# Generates a select field for minutes that defaults to the minutes for the time provided.
select_minute(Time.now + 6.hours)
select_minute(Time.now + 10.minutes)
```
#### select_month
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册