提交 a59a67d0 编写于 作者: A Aditya Sanghi

Explain the implication of using :ignore_date on time_select

上级 85a40f6f
...@@ -210,7 +210,8 @@ def date_select(object_name, method, options = {}, html_options = {}) ...@@ -210,7 +210,8 @@ def date_select(object_name, method, options = {}, html_options = {})
# +object+). You can include the seconds with <tt>:include_seconds</tt>. # +object+). You can include the seconds with <tt>:include_seconds</tt>.
# #
# This method will also generate 3 input hidden tags, for the actual year, month and day unless the option # This method will also generate 3 input hidden tags, for the actual year, month and day unless the option
# <tt>:ignore_date</tt> is set to +true+. # <tt>:ignore_date</tt> is set to +true+. If you set the <tt>:ignore_date</tt> to +true+, you must have a
# +date_select+ on the same method within the form otherwise an exception will be raised.
# #
# If anything is passed in the html_options hash it will be applied to every select tag in the set. # If anything is passed in the html_options hash it will be applied to every select tag in the set.
# #
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册